Commit Graph

913 Commits

Author SHA1 Message Date
Daniel Arndt
480a8c94b0 Avoid dereferencing a nullptr in save_pointer_type::register_type 2017-09-20 14:17:14 +02:00
Robert Ramey
2557639490 try to address problem where singleton is dropped by linker 2017-08-13 14:48:20 -07:00
Robert Ramey
a5cb34ff8e Merge pull request #58 from yuri-kilochek/develop
Fix conversion operators of injected primitive types
2017-08-11 06:13:39 -07:00
Robert Ramey
ad1e1e5d5a attempt to fix mingw failures 2017-08-11 06:12:24 -07:00
Yuri Kilochek
96f818ee03 Use archive::object_id_type::base_type as type of archive::object_id_type's conversion operators for consistency with other injected types. 2017-07-25 17:27:51 +03:00
Yuri Kilochek
791f1bde64 Use same type for both input and output conversion operators of archive::class_id_type. 2017-07-25 17:25:00 +03:00
Robert Ramey
eaf85795f3 adjustment to export codecvt_null<wchar_t> 2017-06-14 15:25:49 -07:00
Robert Ramey
81b44504c5 adjustments to address failing "optional", Failure on FSD expand.hpp ininitlalization, and another attempt to fix linking failure related to singleton get_lock. 2017-06-13 13:11:24 -07:00
Robert Ramey
bebea0fda9 make test optional correct.
attempt to fixe singleton: locked problem for mingw
2017-06-04 11:36:14 -07: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
632df7aab5 correct implementation of serialization for boost::optional 2017-05-08 09:18:36 -07:00
Robert Ramey
49f8f59da2 address recent Trac items 2017-05-04 14:33:19 -07:00
Robert Ramey
b0a794da38 Trying to get minGW to function for serialization library
simplify singleton.hpp and singleton.cpp
alter appveyor.yml
2017-02-23 13:25:27 -08:00
Robert Ramey
1d86261581 correct error which appeared when compiling non c++ compliant code for arrays 2017-02-01 16:43:59 -08:00
Robert Ramey
247f223d82 attempt to address compilation errors win MNGW tests 2016-12-17 13:46:36 -08:00
Robert Ramey
619250c93a merged in correction breaking backward compatibility 2016-12-05 14:16:54 -08:00
Robert Ramey
d558b6da91 adjustments to make test_dll_simple pass 2016-11-25 13:39:18 -08:00
Robert Ramey
b98b458293 Role back changes in valarray due to failures on microsoft platform
Adjust visibility for singleton in the hope of passing mngw tests.
2016-11-20 13:22:47 -08:00
Robert Ramey
26366fecb5 attempt to fix linking problems with singleton module 2016-11-18 09:33:32 -08:00
Robert Ramey
058f1fed43 fix utf8 convert selection - looks like msvc <codecvt> doesn't properly work with uff8_codecvt
Adjust val array to see if it can be made to acceptable to intel compiler
2016-11-17 23:22:50 -08: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
682c371e11 corrections to forward_list 2016-11-07 12:03:11 -08:00
Robert Ramey
5b47212c01 improve collection serialization with boost::move 2016-11-06 17:22:35 -08:00
Robert Ramey
f09c9b197e correction to optional<T> serialization 2016-11-06 15:01:33 -08:00
Robert Ramey
7f801c3d85 remove auto linking from shared_ptr_132 2016-11-05 11:01:30 -07:00
Robert Ramey
3e0f302eee fix error in forward_list serialization 2016-11-04 12:43:00 -07: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
a1ffe9b19b Removed emplace in array serialization. I concluded that it didn't do what I hoped it would and couldn't do so without changing the library API which I was reluctant to so. Changing this use more traditional reference copying functions should have no impact on performance but should improve portability to other compilers such as Intel. 2016-11-02 15:32:10 -07:00
Robert Ramey
c90e97eb1e adjustment in array serialization hoping to pass intel tests 2016-11-02 14:32:37 -07:00
Robert Ramey
fe8b390588 adjustments to tests of <forward_list> 2016-11-02 11:03:20 -07:00
Robert Ramey
8e26bc59db fixed GCC seg fault problem 2016-10-30 20:56:03 -07:00
Robert Ramey
9a2c1f11ab blackout making serialization source dependent on archive source 2016-07-23 14:00:04 -07:00
Robert Ramey
df38b48016 after carefully checking with the master - making changes to address compilation on gcc 2016-07-05 11:02:40 -07:00
Robert Ramey
d1b5c47e16 another attempt to make visibility work 2016-06-25 14:06:17 -07:00
Robert Ramey
3765166f4b altered visibility attributes 2016-06-25 08:21:02 -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
1bfecdfc82 Merge pull request #40 from praetorian20/noexcept_strong_typedef
`noexcept` specifications for `BOOST_STRONG_TYPEDEF`
2016-05-29 10:26:27 -07:00
Robert Ramey
e9ed873275 reverse commit suspected of breaking all gcc tests on develop branch 2016-05-07 18:50:49 -07:00
Ashish Sadanandan
e32c5c5e28 noexcept specifications for BOOST_STRONG_TYPEDEF
`BOOST_STRONG_TYPEDEF` now detects whether the type being wrapped is
nothrow default/copy constructible and nothrow assignable. The wrapped
type is given its own `noexcept` specifications accordingly.
2016-05-04 00:12:51 -06:00
Robert Ramey
8f7b3be1d2 made headers stand alone 2016-04-24 22:25:12 -07:00
Robert Ramey
3eb2bda80b correction in trailer of xml archives 2016-04-21 12:32:14 -07:00
Robert Ramey
42b5b6859b added missing header 2016-04-18 21:40:00 -07:00
Robert Ramey
69ecae6919 cleaned up commented out code related to new operators 2016-03-29 18:38:34 -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
73ec60764a use std::codecvt facet if available 2016-03-21 00:04:22 -07:00
Robert Ramey
e40ae62ced tweak visitoiity to eliminate linker warnings 2016-03-21 00:02:06 -07:00
Robert Ramey
d25475da16 correction to visibility attribute highlighted by minnow tests 2016-03-20 22:26:34 -07:00
Robert Ramey
1a65a19c20 blackout changes to istream iterator 2016-03-15 14:51:57 -07:00
Robert Ramey
e629008d55 changes to test_iterators and others to pass tests 2016-03-11 18:26:34 -08:00
Robert Ramey
5988a816f9 correct dereference of iterator incremented past end() 2016-03-08 12:34:51 -08:00
Robert Ramey
00459350f0 use explicit namespace in the hope of fixing test failure for intel 2016-03-03 22:37:45 -08: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
150b7e8a5f various adjustments to
a) correct error in loading set / map for C++11+
b) more refinements of visibility
2016-02-14 21:22:35 -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
7ae4087c05 fix visibility error for at least mdvc 2016-02-12 12:01:29 -08:00
Robert Ramey
72ef8bf59a correction of visibility setup 2016-01-23 22:29:04 -08:00
Robert Ramey
d330deb82c return utf8 back to state of 22 ocober 2016-01-18 11:41:22 -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
6facb61510 fixed a couple of trac items 2016-01-15 09:49:34 -08:00
Robert Ramey
eb6faaf428 minor adjustments to fix errors with gcc 6.0 2016-01-14 22:18:51 -08:00
Robert Ramey
587b081d1d backing out dependence on boost locale.
revert to boost/detail/utf8_codecvt
2016-01-14 13:48:16 -08:00
Robert Ramey
67b16f8a9d explicitly initialized m_mbs (std::mbstate_t) in utf8 transform iterators.
adjusted tests to be sure that wchar arrays/strings are null terminated.
2015-11-24 10:48:03 -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
41fd59b77b fixed erroneous visibility attribute 2015-10-27 09:26:28 -07:00
Robert Ramey
194ff67a05 attempt to make codecvt_null table visible 2015-10-26 12:37:01 -07:00
Robert Ramey
a76a511c95 adjustments for clang visibility 2015-10-25 21:02:44 -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
edf1dffd70 fixing codecvt for libstc++ broke things for libc++
This should work for everything
2015-10-24 22:14:27 -07:00
Robert Ramey
ae4c2321af Finally? found error in recovery of codecvt facet? 2015-10-24 21:42:34 -07:00
Robert Ramey
160a3369db made improvements in codecvt handling.
Fails two tests on gcc
2015-10-24 13:28:02 -07:00
Robert Ramey
a64bf6e4d5 isolated one problem with codecvt facets 2015-10-22 04:42:22 -07:00
Robert Ramey
13f794d953 corrected changes 2015-10-19 21:42:47 -07:00
Robert Ramey
e4219b35eb Merge pull request #31 from jzmaddock/msvc-linkage
Changes to get things linking correctly with msvc:
2015-10-18 10:46:26 -06:00
jzmaddock
d53d3159b4 Changes to get things linking correctly with msvc:
1) Move the two facets utf8_codecvt_facet and codecvt_null into
the main serialization archive as they get referenced from xml_oarchive.obj.
2) Add DLL-interface to utf8_codecvt_facet.
3) Change codecvt_null to use narrow character DLL interface macros.
2015-10-18 11:51:26 +01:00
Robert Ramey
72530c408d re-installed streambuf_saver so that "imbue" is reversed when the archive is destroyed 2015-10-17 23:09:34 -07:00
Robert Ramey
62c975820d fixed conversion of string -> wasting and vice versa
made data flow iterator which uses codecvt facet - need to generalize this.
expanded test of this
looks like fixed visibility issues - except for one test.
2015-10-16 22:20:44 -07:00
Robert Ramey
5e6f0bd271 simplification of codecvt facets.
This fixed bug of unknown origin in test_array_xml_archive
2015-10-07 12:09:13 -07:00
Robert Ramey
348a916a81 simplification of codecvt facets.
This fixed bug of unknown origin in test_array_xml_archive
2015-10-07 10:57:35 -07:00
Robert Ramey
42512bc128 fixted https://svn.boost.org/trac/boost/ticket/11520 2015-10-05 09:11:01 -07:00
Robert Ramey
88a4156aaa Corrections in C++03 support and update of build files 2015-10-04 10:47:11 -07:00
Robert Ramey
619f30aa8d added messing files from unordered collections refactor 2015-10-03 23:51:17 -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
40f6cfcc84 Fixed problems with new wchar/mbchar conversion
bumped archive version number
2015-10-02 15:03:02 -07:00
Robert Ramey
4d9fccbee5 Merge pull request #22 from NuxiNL/develop
Don't use thread unsafe wide character processing functions.
2015-10-02 13:29:48 -06:00
Robert Ramey
d8c26789e0 fixed leaking definition of STD 2015-09-30 08:37:17 -07:00
Robert Ramey
e0b4403d61 more tweaks to fix visibility errors and avoid warnings 2015-09-29 13:55:23 -07:00
Robert Ramey
45610e25e4 changes to support visibility - by Edward Diener 2015-09-29 12:32:23 -07:00
Robert Ramey
ae22245b28 Merge pull request #17 from jhunold/virtual
classes with virtual function must have virtual destructors.
2015-09-29 00:56:45 -06:00
Robert Ramey
4f83fc163a Miscellaneous fixes 2015-09-28 23:52:47 -07:00
Robert Ramey
e3129464dc Merge branch 'master' into develop 2015-09-28 15:05:31 -07:00
Robert Ramey
9542a9f78e modify comment
eliminate regenerated files
2015-09-28 14:59:06 -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
Ed Schouten
599c53c5d0 Don't use thread unsafe wide character processing functions.
The mbtowc(), wctomb() and mblen() functions are not supposed to be
thread-safe, as they have to keep parsing state in a global variable.
The mbrtowc(), wcrtomb() and mbrlen() functions should be used instead.

This change also simplifies how wchar_from_mb<Base>::drain() works.
There is no need to first iterate over the input using mblen().
mbrtowc() can store the partially parsed multibyte character in its
mbstate_t.
2015-08-27 16:08:53 +02:00
Jürgen Hunold
6795c81995 classes with virtual function must have virtual destructors.
The warning is not "bogus" and not only gcc warns.
clang will warn too, but defines __GNUC__ for gcc compatibility.
msvc issues "warning C4265: 'boost::serialization::<foo>' :
class has virtual functions, but destructor is not virtual"
The msvc warning could be suppressed, but it is much cleaner to simply
make the destructors virtual as they are with gcc and clang.
2015-06-15 10:38:57 +02:00
Robert Ramey
d779a5d127 Merge develop to master 2015-05-23 11:51:06 -07:00
Robert Ramey
bee3377881 Improved loading of collections
fixed problems with loading types with private constructors
diminished need for reset object address
2015-05-22 08:59:11 -07:00
Robert Ramey
f527700804 more compile time errors for mdvc 2015-05-09 18:17:33 -07:00
Robert Ramey
1fb23d124d correction to support visibility for MSVC 2015-05-09 08:24:46 -07:00
Robert Ramey
18992fb13d fixed warnin 2015-04-27 21:40:15 -07:00