addressed user complaint and rolled back change which called desstructor

This commit is contained in:
Robert Ramey
2017-11-07 15:08:12 -08:00
parent 8d0b0db5de
commit 0ba417dd1c
3 changed files with 25 additions and 4 deletions

View File

@@ -134,6 +134,7 @@ test-suite "serialization" :
if ! $(BOOST_ARCHIVE_LIST) {
test-suite "serialization2" :
[ test-bsl-run-no-lib test_inclusion ]
[ test-bsl-run-no-lib test_inclusion2 ]
[ test-bsl-run test_dll_exported : : dll_polymorphic_derived2_lib ]
[ test-bsl-run test_dll_simple : : dll_a_lib ]
[ compile test_dll_plugin.cpp ]
@@ -149,7 +150,7 @@ if ! $(BOOST_ARCHIVE_LIST) {
[ test-bsl-run test_smart_cast ]
[ test-bsl-run test_codecvt_null ]
#[ test-bsl-run test_z ]
# [ test-bsl-run test_z ]
# should fail compilation
[ compile-fail test_not_serializable.cpp ]

View File

@@ -555,7 +555,8 @@ int main()
assert(base64 == output);
return 0;
}
#else
#elif 0
#include <memory>
#include <sstream>
@@ -597,4 +598,23 @@ int main()
return 0;
}
#else
#include <boost/archive/binary_iarchive.hpp>
#include <boost/serialization/vector.hpp>
#include <sstream>
#include <vector>
void f()
{
std::stringstream iss;
boost::archive::binary_iarchive ar(iss);
std::vector<int> out;
ar >> out;
}
int main(int argc, char* argv[])
{
return 0;
}
#endif