22#ifndef HT_SERIAL_MSGPACK_UNPACKER_H
33#define HT_SERIAL_MSGPACK_UNPACKER_H
44
5- #include < ArxTypeTraits.h >
6- # include < ArxContainer.h >
7- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
5+ #define HAVE_LIBSTDCPP11
6+
7+ #ifdef HAVE_LIBSTDCPP11
88#include < vector>
99#include < array>
1010#include < deque>
@@ -238,7 +238,7 @@ namespace msgpack {
238238 // - std::array<char>
239239 // - std::array<unsigned char>
240240
241- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
241+ #ifdef HAVE_LIBSTDCPP11
242242
243243 template <typename T>
244244 auto unpack (bin_t <T>& bin) ->
@@ -258,7 +258,7 @@ namespace msgpack {
258258
259259#endif // Do not have libstdc++11
260260
261- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
261+ #ifdef HAVE_LIBSTDCPP11
262262
263263 template <typename T, size_t N>
264264 auto unpack (std::array<T, N>& bin) ->
@@ -292,7 +292,7 @@ namespace msgpack {
292292 return b_decode_success;
293293 }
294294
295- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
295+ #ifdef HAVE_LIBSTDCPP11
296296
297297 template <typename T, size_t N>
298298 auto unpack (std::array<T, N>& arr) ->
@@ -400,7 +400,7 @@ namespace msgpack {
400400 return b_decode_success;
401401 }
402402
403- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
403+ #ifdef HAVE_LIBSTDCPP11
404404
405405 template <typename T, typename U>
406406 bool unpack (std::multimap<T, U>& mp) {
@@ -588,7 +588,7 @@ namespace msgpack {
588588 }
589589 }
590590
591- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
591+ #ifdef HAVE_LIBSTDCPP11
592592
593593 template <typename T, size_t N>
594594 auto unpackBinary () -> typename std::
@@ -802,7 +802,7 @@ namespace msgpack {
802802
803803 double unpackFloat64 () {
804804 MSGPACK_DECODABLE_CHECK (double );
805- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
805+ #ifdef HAVE_LIBSTDCPP11
806806 if (isFloat64 ())
807807 return unpackFloatUnchecked64 ();
808808 else
@@ -882,7 +882,7 @@ namespace msgpack {
882882 return type_error<bin_t <T>>(Type::BIN32);
883883 }
884884
885- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
885+ #ifdef HAVE_LIBSTDCPP11
886886
887887 template <typename T, size_t N>
888888 auto unpackBinary8 () -> typename std::
@@ -1129,7 +1129,7 @@ namespace msgpack {
11291129 }
11301130
11311131 double unpackFloatUnchecked64 () {
1132- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
1132+ #ifdef HAVE_LIBSTDCPP11
11331133 return getRawBytes<double >(curr_index++, 1 );
11341134#else
11351135 return unpackFloatUnchecked32 (); // AVR does not support double
@@ -1204,7 +1204,7 @@ namespace msgpack {
12041204 return data;
12051205 }
12061206
1207- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
1207+ #ifdef HAVE_LIBSTDCPP11
12081208
12091209 template <typename T, size_t N>
12101210 auto unpackBinaryUnchecked8 () -> typename std::
@@ -1469,7 +1469,7 @@ namespace msgpack {
14691469 return isBin ();
14701470 }
14711471
1472- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
1472+ #ifdef HAVE_LIBSTDCPP11
14731473
14741474 template <typename T, size_t N>
14751475 auto unpackable (const std::array<T, N>& bin) const ->
@@ -1501,7 +1501,7 @@ namespace msgpack {
15011501 return isArray ();
15021502 }
15031503
1504- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
1504+ #ifdef HAVE_LIBSTDCPP11
15051505
15061506 template <typename T, size_t N>
15071507 auto unpackable (const std::array<T, N>& arr) const ->
@@ -1579,7 +1579,7 @@ namespace msgpack {
15791579 return isMap ();
15801580 }
15811581
1582- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
1582+ #ifdef HAVE_LIBSTDCPP11
15831583
15841584 template <typename T, typename U>
15851585 bool unpackable (const std::multimap<T, U>& mp) const {
@@ -1895,7 +1895,7 @@ namespace msgpack {
18951895 return T ();
18961896 }
18971897
1898- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
1898+ #ifdef HAVE_LIBSTDCPP11
18991899 template <template <typename ...> class C , class T >
19001900 void unpackArrayContainerArray (C<T>& arr)
19011901#else // Do not have libstdc++11
@@ -1917,7 +1917,7 @@ namespace msgpack {
19171917 }
19181918 }
19191919
1920- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
1920+ #ifdef HAVE_LIBSTDCPP11
19211921 template <template <typename ...> class C , class T >
19221922 void unpackArrayContainerSet (C<T>& arr)
19231923#else // Do not have libstdc++11
@@ -1938,7 +1938,7 @@ namespace msgpack {
19381938 }
19391939 }
19401940
1941- #if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11
1941+ #ifdef HAVE_LIBSTDCPP11
19421942 template <template <typename ...> class C , class T , class U >
19431943 void unpackMapContainer (C<T, U>& mp) {
19441944#else // Do not have libstdc++11
0 commit comments