Changeset 209:768b76c5c087 in rrlib_serialization
- Timestamp:
- 02.11.2021 15:58:04 (2 years ago)
- Branch:
- 17.03
- Phase:
- public
- Tags:
- tip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
detail/tStringOutputStreamFallback.cpp
r206 r209 72 72 // tStringOutputStreamFallback destructor 73 73 //---------------------------------------------------------------------- 74 #ifdef _LIB_RRLIB_XML_PRESENT_ 74 75 tStringOutputStreamFallback::~tStringOutputStreamFallback() 75 76 { 76 77 wrapped.SetContent(ToString()); 77 78 } 79 #endif 78 80 79 81 //---------------------------------------------------------------------- -
tests/serialization.cpp
r192 r209 77 77 // Const values 78 78 //---------------------------------------------------------------------- 79 80 #ifdef _LIB_RRLIB_XML_PRESENT_ 81 const bool cXML_SUPPORT = true; 82 #else 83 const bool cXML_SUPPORT = false; 84 #endif 79 85 80 86 //---------------------------------------------------------------------- … … 97 103 static_assert(ContainerSerialization<std::pair<size_t, std::string>>::cBINARY_SERIALIZABLE, "Incorrect trait implementation"); 98 104 static_assert(IsBinarySerializable<std::map<size_t, std::string>>::value == true, "Incorrect trait implementation"); 99 static_assert(IsXMLSerializable<std::map<size_t, std::string>>::value == true, "Incorrect trait implementation");105 static_assert(IsXMLSerializable<std::map<size_t, std::string>>::value == cXML_SUPPORT, "Incorrect trait implementation"); 100 106 static_assert(IsAssociativeContainer<std::vector<std::string>>::value == false, "Incorrect trait implementation"); 101 107 static_assert(IsAssociativeContainer<std::vector<double>>::value == false, "Incorrect trait implementation"); … … 123 129 static_assert(IsBinarySerializable<std::tuple<int&, std::string&>>::value == true, "Incorrect trait implementation"); 124 130 125 static_assert(IsXMLSerializable<std::tuple<>>::value == true, "Incorrect trait implementation");126 static_assert(IsXMLSerializable<std::tuple<int, std::array<std::string, 4>, std::vector<tEnumSigned>>>::value == true, "Incorrect trait implementation");131 static_assert(IsXMLSerializable<std::tuple<>>::value == cXML_SUPPORT, "Incorrect trait implementation"); 132 static_assert(IsXMLSerializable<std::tuple<int, std::array<std::string, 4>, std::vector<tEnumSigned>>>::value == cXML_SUPPORT, "Incorrect trait implementation"); 127 133 static_assert(IsXMLSerializable<std::tuple<tNonSerializable, std::array<tNonSerializable, 4>>>::value == false, "Incorrect trait implementation"); 128 static_assert(IsXMLSerializable<std::tuple<std::map<int, int>, std::array<std::string, 4>>>::value == true, "Incorrect trait implementation");129 static_assert(IsXMLSerializable<std::pair<int, std::array<std::string, 4>>>::value == true, "Incorrect trait implementation");134 static_assert(IsXMLSerializable<std::tuple<std::map<int, int>, std::array<std::string, 4>>>::value == cXML_SUPPORT, "Incorrect trait implementation"); 135 static_assert(IsXMLSerializable<std::pair<int, std::array<std::string, 4>>>::value == cXML_SUPPORT, "Incorrect trait implementation"); 130 136 static_assert(IsXMLSerializable<std::pair<tNonSerializable, std::array<tNonSerializable, 4>>>::value == false, "Incorrect trait implementation"); 131 static_assert(IsXMLSerializable<int&>::value == true, "Incorrect trait implementation");132 static_assert(IsXMLSerializable<std::tuple<int&, std::string&>>::value == true, "Incorrect trait implementation");137 static_assert(IsXMLSerializable<int&>::value == cXML_SUPPORT, "Incorrect trait implementation"); 138 static_assert(IsXMLSerializable<std::tuple<int&, std::string&>>::value == cXML_SUPPORT, "Incorrect trait implementation"); 133 139 134 140
Note: See TracChangeset
for help on using the changeset viewer.