Commit Graph

930 Commits

Author SHA1 Message Date
Robert Ramey
bcc0bfe073 squash merge all changes in develop into master 2021-05-02 18:31:57 -07:00
Robert Ramey
3ab4da85f2 squash merge into next boost release 2021-02-22 16:33:33 -08:00
Robert Ramey
07de314975 merge into next boost release 2020-11-17 22:18:38 -08:00
Robert Ramey
ed44fcd268 changes made in the hope of eliminated “stable” error for functions previously defined in the header. Moved those function to codecvt_null.cpp 2020-07-11 12:02:39 -07:00
Robert Ramey
17fb465af1 Squash-merge develop 2020-07-03 17:11:10 -07:00
EugeneZelenko
753c157497 Use BOOST_OVERRIDE to fix GCC -Wsuggest-override and Clang-tidy modernize-use-override warnings. (#200)
Fix Clang -Wextra-semi and Clang-tidy modernize-redundant-void-arg and readability-redundant-control-flow warnings.
Also fix some misspellings in comments.
2020-05-30 12:37:53 -07:00
joaquintides
53047f6356 updated to option 1) as requested by Robert 2020-03-03 13:21:46 +01:00
joaquintides
7e0708ea5d avoided misleading indentation warning
Clang 10.0 says:

`../boost/archive/basic_text_oprimitive.hpp:169:13: warning: misleading indentation;
statement is not part of the previous 'if' [-Wmisleading-indentation]`

(see https://www.boost.org/development/tests/develop/output/teeks99-dkr-dc10-2a-multi_index-clang-linux-10~c++2a-warnings.html#test_serialization)
2020-02-24 09:28:20 +01:00
Robert Ramey
d0509483ed fixing template parameter in boost unordered map
bumping archive library version.
2020-01-21 14:14:05 -08:00
Robert Ramey
d95a1df37a moved archive init call to most derived archive class so that we avoid down casting while in a ctor . The previous behavior was undefined behavior and emits errors when the address sanitizer is enabled. 2020-01-15 23:20:07 -08:00
Robert Ramey
eac306d8a6 fixing template parameters for hash_map - used for older compilers. 2020-01-15 15:16:36 -08:00
Robert Ramey
998e6c3d59 corrected template parameter passing for hashed/unordered collections. 2020-01-15 13:18:44 -08:00
Robert Ramey
b22ffc63da Fixed some MACRO constants to be consistent with Boost Guidelines. 2019-12-16 06:43:53 -08:00
Antons Jeļkins
443dea34ab Fix base class offset calculation in void_cast.hpp.
The current approach generates warnings with ASAN and UBSAN as it features
a magic address which does not hold an object. This change addresses this
issue. The new code produces the same assembly and does not cause any
warnings.

Example:

==72613==ERROR: AddressSanitizer: SEGV on unknown address 0x0000000ffff8
               (pc 0x0000004012d9 bp 0x7ffd5b3eecf0 sp 0x7ffd5b3eece0 T0)
2019-12-10 14:02:05 +01:00
Robert Ramey
76df6df23f Merge branch 'develop' of https://github.com/boostorg/serialization into develop 2019-10-20 14:10:14 -07:00
Robert Ramey
098019d074 fixed subtle bug in reset_object_address. Turns out that the address anything loaded as a pointer should not be altered. 2019-10-20 14:08:13 -07:00
Hans Dembinski
c813db7ad7 stripping white space 2019-10-20 22:49:29 +02: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
6bd667a5bb Merge pull request #172 from TaWeiTu/develop
"reference binding to null pointer" results in an undefined behaviour
2019-09-29 07:53:23 -07:00
Glen Fernandes
4ed898b1d3 Use boost::nvp from Boost.Core 2019-09-27 23:07:06 -04:00
Robert Ramey
7300ff02b9 overlooked files from last commit 2019-09-27 18:19:26 -07:00
Robert Ramey
fd8186018b moved nvp into boost core in the hope of curtailing the dependency chain for boost libraries which declare serialization but don’t invoke it. 2019-09-27 15:37:42 -07:00
Robert Ramey
c32a663c99 Initial cut on moving declaration/definition of nvp to boost core. 2019-09-15 15:21:55 -07:00
TaWeiTu
48f0844fda reference binding to null pointer is an undefined behaviour 2019-09-02 05:58:06 +08:00
Robert Ramey
1b11637b1c Merge pull request #146 from MarcelRaad/extra_semi
Fix -Wextra-semi clang warning
2019-03-14 10:19:00 -07:00
Robert Ramey
7d79dc7146 last minute fixes requested by users. Mostly to avoid warnings 2019-03-02 09:39:18 -08:00
Marcel Raad
8d4b2136d2 Fix -Wextra-semi clang warning
Remove superfluous semicolon.
2019-02-25 11:52:18 +01:00
Robert Ramey
d526c0f80e Merge pull request #125 from Kojoley/use-endian-macros-from-predef
Use endian macros from Predef
2018-12-20 08:58:20 -08:00
Andrey Semashev
b78cd872ec Use uncaught_exceptions from Boost.Core to avoid C++17 warnings.
In C++17, std::uncaught_exception is deprecated in favor of
std::uncaught_exceptions. Use portable uncaught_exceptions implementation
from Boost.Core, which is also available for C++03.
2018-12-17 18:42:53 +03:00
Robert Ramey
f01148e421 minor adjustments to suppress assertions on free psd unix platforms. It seems that this platform doesn't guarantee that static variables aren't destroyed in reverse order of creation. 2018-11-19 10:54:46 -08:00
Robert Ramey
f297d80d6e Fixed errors in singleton
removed superfluous comma to avoid warning
2018-11-08 21:07:09 -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
af46ac2da3 removed superfluous header 2018-10-19 14:22:20 -07:00
Robert Ramey
e1893dd28c made base grammar visible
made changes in singleton.hpp to address running issue regarding test_dll_exported
fixed integer overflow so that UBAN tests pass
2018-10-11 22:03:51 -07:00
Nikita Kniazev
da9c3059f2 Use endian macros from Predef
The `boost/detail/endian.hpp` header is deprecated.
2018-10-04 20:33:10 +03:00
Joachim Mairboeck
87c50e75fa fix Trac issue 7240 by applying the patch from there 2018-08-29 10:16:43 +02:00
Robert Ramey
738695b707 correct msvc version number 2018-05-23 13:28:56 -07:00
Robert Ramey
449e659de3 adjust workaround for msvc problem 2018-05-05 13:02:47 -07:00
Robert Ramey
4986fc2097 moved level trait for variant to the correct namespace 2018-05-04 23:30:02 -07:00
Robert Ramey
52cbea8c16 fix gcc warning
bump library version number to 17
2018-05-03 22:56:07 -07:00
Robert Ramey
ed435d5a31 Address PR s and issues
a) eliminate warning on narrowing of int to char in unescape
b) eliminate warning on cast of version types
c) fix error which appears when serializing collections of boost::variant
2018-05-03 15:20:08 -07:00
Robert Ramey
75c224103d Merge pull request #92 from oxygene/patch-1
Use unique header guards for boost_array.hpp
2018-04-30 13:32:55 -07:00
Robert Ramey
297b7c3b52 Merge pull request #94 from res2k/travis-tweaks
Various Appveyor & Travis improvements
2018-04-30 13:30:27 -07:00
Robert Ramey
8ca532a4d5 include test for singleton
update Jamfile
2018-04-30 12:46:23 -07:00
Christof Krüger
3c438dfddb Use unique header guards for boost_array.hpp
Previously boost_array.hpp used the same header guards as array.hpp.

Fixes https://svn.boost.org/trac10/ticket/13437#ticket.
2018-02-06 01:58:38 +01:00
Frank Richter
6477759341 Try to tweak void_cast to work around ICE on MinGW 2018-01-30 12:45:08 +01:00
Robert Ramey
24024425f1 fix failing tests 2017-11-28 10:56:37 -08:00
Robert Ramey
4ee479a03e corrections for dll linkage and testing 2017-11-24 15:51:46 -08:00
Robert Ramey
8378c75f32 corrections to singleton - tested on on all platforms 2017-11-23 12:05:46 -08:00
Robert Ramey
7d216b4761 corrected singleton and ran test_dll_exported on unix,mingv,windows and osx 2017-11-22 21:53:19 -08:00