62 Commits

Author SHA1 Message Date
Robert Ramey
9aa208d9be made C++ 11 the default 2023-11-02 20:23:32 -07:00
Robert Ramey
ff0a5f9f4a corrected inclusion of <optional> 2023-11-02 20:17:08 -07:00
Robert Ramey
a2f93247e2 uploading changes regarding unordered ...
uploading tweaks to CMakeLists.txt so accommodate static linking
2023-10-20 15:20:43 -07:00
Robert Ramey
404e0a31ae Merge pull request #289 from cmazakas/unordered-serialization
Remove serialization support from Boost.Unordered containers
2023-10-13 12:48:01 -07:00
Robert Ramey
897dec4c01 imported/implemented boost/serialization/variant and test_variant
imported/implemented boost/serialization/variant now contains code for serialization of boost::variant, boost::variant2 and std::variant. Care has been taken to depend only on the public interfaces of these types. Hence, it is reasonable to hope that the archives are compatible in that one type could be saved and subsequently loaded into a compatible type.  Hopefully this will be useful in some way.  At a minimum it minimizes code duplication.
2023-09-18 10:49:21 -07:00
Christian Mazakas
f28482232d Remove serialization support from Boost.Unordered containers
Unordered now supports its Serialization functions so the headers just need to be updated to keep backwards compatibility
2023-09-11 14:52:51 -07:00
Robert Ramey
cb729f5d88 Merge pull request #148 from sdebionne/add-std-variant-support
Add support for C++17 std::variant
2023-09-03 13:06:00 -07:00
Robert Ramey
ddf65a2666 made adjustments to hash set and map testing with the aim of correctly handling elimination of BOOST_HASH … 2020-12-21 19:00:33 -08:00
Robert Ramey
c7761f2335 improvements in serialization library
a) fixed up CMake Build so it does everything the B2 Build does.  They give the same results.
b) made adjustments so that any code which depends upon serialization depends only upon files in the serialization folder/namespace.  This should permit one to add serialization to his library without ending up importing the whole damn world.
2020-06-19 00:04:31 -07:00
Samuel Debionne
f914a185c3 Add support for std::variant 2020-05-05 11:00:59 +02:00
Robert Ramey
f04a8cbe90 shortened name of test in the hopes it fix a test failure one windows with gcc - minnow
removed last references to pfto in documentation
2019-10-11 16:07:10 -07:00
Robert Ramey
0f0409a2ad corrections to last updates.
nvp and make_nvp now back in serialization namespace
corrected removal of array wrapper from array types.
2019-10-05 11:14:56 -07:00
Robert Ramey
ee50f8c911 adjustments to fix “exported” tests. 2018-12-24 08:52:50 -08:00
Robert Ramey
cc2a996384 Added in more singleton tests 2018-11-17 13:21:31 -08:00
Robert Ramey
9e98df0a0d Corrected various tests.
improved build under CMake and B2
passes all tests on clang 03 and g++ 6.2
2018-11-14 14:27:46 -08:00
Robert Ramey
b97bcdfeb3 adjustments to address visibility/import/export issues on windows gcc platforms 2018-11-11 04:56:11 -08:00
Robert Ramey
efcd46eb1b Just discovered that registering type via EXPORT doesn't work with polymorphic archives !!!
Corrected this.
2018-11-03 06:23:22 -07:00
Robert Ramey
c5549b2d6b adjusted tests to properly handle visibility in DLLS
improvements in CMake files
2018-10-30 02:29:15 -07:00
Robert Ramey
65f05dc209 Fix of test_dll_exported by altering syntax to accommodate "visibility=hidden"
update for CMakeList.txt files for serialization library - still pending but I'm the only one who uses it.
inclusion of "test" from Alexander Gruber - temporary
2018-10-26 09:56:23 -07:00
Robert Ramey
4ee479a03e corrections for dll linkage and testing 2017-11-24 15:51:46 -08:00
Robert Ramey
fea1826e06 fix for singleton. This simplifies the visibility for the singleton class.
tested on my own machine for Clang/OSX, gcc on ubuntu and on mingw
2017-11-11 12:14:30 -08:00
Robert Ramey
a2a8890dfb fix overload of & when taking address 2017-11-08 08:31:04 -08:00
Robert Ramey
0c8a1d615a fix as described in PR #53.
fixes warnings

Seen with all versions of msvc from (at least) 9.0 up to 14.1.
Signed-off-by: Daniela Engert dani@ngrt.de

fixed pr #53, #52, #50, #49, #34, #29, #23, #25, #20, #14, #7
2017-05-24 06:32:39 -07:00
Robert Ramey
6b33d1cd4e refactor various tests related to arrays and lists 2016-11-14 23:39:14 -08:00
Robert Ramey
58b4f73c70 corrections to test invocation for lists 2016-11-14 14:30:01 -08:00
Robert Ramey
f09c9b197e correction to optional<T> serialization 2016-11-06 15:01:33 -08:00
Robert Ramey
19e2ef234b fixed serialization of optional.hpp to prevent it from calling load_construct ... 2016-11-04 12:28:03 -07:00
Robert Ramey
fe8b390588 adjustments to tests of <forward_list> 2016-11-02 11:03:20 -07:00
Robert Ramey
03865e70cb correct test_strong_type
back out breaking change for gcc i/o
2016-06-03 22:28:50 -07:00
Robert Ramey
0458a89fc3 adjustments to strong type test 2016-05-29 13:33:49 -07:00
Robert Ramey
fc9d311df9 changes to address some test failures 2016-04-15 12:53:16 -07:00
Robert Ramey
9e2541b030 a) suppress warnings in some tests
b) break out test_forward_list
c) fixe test operator new for mdvc
2016-03-28 14:41:53 -07:00
Robert Ramey
ec0c2a2ba1 adjustment to auto link for utf8_codecvt_facit.hpp
minor improvements in map.hp
adjustment to auto link for polymorphic tests
2016-03-03 13:46:50 -08:00
Robert Ramey
d9ad787f70 replace insert with emplace where appropriate
remove workarounds for mdvc 7.1
2016-02-13 10:42:07 -08:00
Robert Ramey
00ede57216 fixing visibility for utf8_codecvt 2016-01-19 22:58:45 -08:00
Robert Ramey
ccdb32bfe5 attempted to eliminate visibility warnings when building as a static library with clang
fixed compile error on polymorphic_derived2
2016-01-17 09:06:11 -08:00
Robert Ramey
9bb75492ff added back in test_utf8_codecvt 2015-11-22 16:55:58 -08:00
Robert Ramey
e3b67eb299 changes to correct errors in usage of codecvt for utf8
Key change is to change utf8 codecvt facet to use Boost.Locale rather than boost/detail.  This fixed an issue with gcc.
2015-10-30 16:26:11 -07:00
Robert Ramey
494fa31e1c make singleton module lock/unlock work across mainline and all DLL code
fix warnings in binary primitives
fixup bjam test
make sure all codecvt facets are are serialization DLL
2015-10-24 23:49:00 -07:00
Robert Ramey
13f794d953 corrected changes 2015-10-19 21:42:47 -07:00
Robert Ramey
153e7e635c added serialization of Boost/unordered_set and boost/unordered_map and create new tests 2015-10-03 23:48:52 -07:00
Robert Ramey
763f204e80 resolution of issue related to private base classes 2015-10-02 08:22:03 -07:00
Robert Ramey
2d09112b24 separated tests for map and set for C++ 11 and C++ 03 2015-09-27 21:34:21 -07:00
Robert Ramey
a32549c25f fixed problem with helper on polymorphic archives
added test_polymorphic_helper
2015-04-10 14:24:33 -07:00
Robert Ramey
61b81fad46 many small adjustments to get visibility working correctly on GCC and Clang.
Tested pretty extensively in release/debug shared/linked.
I don't have MSVC on me - so I'll have to upload without testing this.
One pending issue is that test_utf8_codecvt fails.  I'm guessing that the copy in detail needs to be tweaked.
I'll get this fixed up separately.
2015-04-02 13:02:33 -07:00
Robert Ramey
a838b0821f tweaked tests to suppress some warning noise
fixed sequential lists to handle types without default constructors
adjusted CMakeLists.txt to correctly generate c++ selection for Xcode
2014-12-16 15:40:24 -08:00
Robert Ramey
567bccc026 fixed problem serialization vector<vector<?> >
improved memory management using autoptr where scoped_ptr is called for.  Note: condition usage of unique_ptr for newer platforms.
added tests to verify that interruption of serialization handles exception handling gracefully
2014-12-06 13:10:12 -08:00
Robert Ramey
6ba97066f4 fixed error where vector<vector<dummy>> doesn't serialize properly
improved loading of sequential containers
2014-12-02 00:02:54 -08:00
Robert Ramey
d912153782 corrections to shared pointer support and implementation of helper collection 2014-06-26 07:25:22 -07:00
Robert Ramey
7f604fa7ff minor corrections to pass full suite of test 2014-02-17 12:28:07 -08:00