@@ -9,8 +9,8 @@ It allows encoding and decoding following data types:
99* bool values
1010* pairs of types represented by ``` std::pair<T1, T2> ```
1111* compact integers represented by CompactInteger type
12- * optional values represented by ``` boost ::optional<T>```
13- * as special case of optional values ``` boost ::optional<bool>``` is encoded using one byte following specification.
12+ * optional values represented by ``` std ::optional<T>```
13+ * as special case of optional values ``` std ::optional<bool>``` is encoded using one byte following specification.
1414* collections of items represented by ``` std::vector<T> ```
1515* variants represented by ``` boost::variant<T...> ```
1616
@@ -26,8 +26,8 @@ auto * raw_str = "zxczxczx";
2626bool b = true ;
2727CompactInteger ci = 123456789 ;
2828boost::variant<uint8_t , uint32_t , CompactInteger> vint = CompactInteger(12345 );
29- boost ::optional<std::string> opt_str = " asdfghjkl" ;
30- boost ::optional<bool > opt_bool = false ;
29+ std ::optional<std::string> opt_str = " asdfghjkl" ;
30+ std ::optional<bool > opt_bool = false ;
3131std::pair<uint8_t , uint32_t > pair{1u, 2u};
3232std::vector<uint32_t> coll_ui32 = {1u, 2u, 3u, 4u};
3333std::vector< std::string > coll_str = {"asd", "fgh", "jkl"};
@@ -58,8 +58,8 @@ std::string str;
5858bool b = true;
5959CompactInteger ci;
6060boost::variant<uint8_t, uint32_t, CompactInteger> vint;
61- boost ::optional< std::string > opt_str;
62- boost ::optional<bool > opt_bool;
61+ std ::optional< std::string > opt_str;
62+ std ::optional<bool > opt_bool;
6363std::pair<uint8_t, uint32_t> pair{};
6464std::vector<uint32_t> coll_ui32;
6565std::vector< std::string > coll_str;
0 commit comments