Commit Graph

1831 Commits

Author SHA1 Message Date
Vassil Vassilev
bd2b756986 Add missing include (#212)
This patch allows the header to be built standalone, as part of clang C++ modules builds.
2020-07-17 12:02:18 -07:00
Robert Ramey
8acf32935b clean up by removing unused headers
add version.hpp which might be needed
2020-07-15 15:58:11 -07:00
Robert Ramey
812ef99dea 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-10 11:24:31 -07:00
Robert Ramey
cfed656eb0 removed some in appropriate files
made adjustments regarding visibility macros in the hope of pacifying MSVC compilers
2020-06-29 13:40:09 -07:00
Robert Ramey
4dd4895246 remove erroneous added library status html file 2020-06-26 19:07:01 -07:00
Robert Ramey
676722671e create alias in namespace boost::archive to support older user code. new location is in boost::serialization. 2020-06-26 17:30:44 -07:00
Robert Ramey
b672e87f9d use boost/uint_least16 rather than the standard one. A previous “fix” fixed this, so now I’m fixing it back. Coincidently, looks like the serialization library is backward compatible to C++98 2020-06-26 14:20:06 -07:00
Robert Ramey
4fb556f9c4 merged in refactoring designed to diminish dependencies 2020-06-25 09:18:38 -07:00
Hans Dembinski
f4c6d58bb5 fix compile error (#208) 2020-06-24 10:32:33 -07:00
Robert Ramey
6af3783a2c remove unused headers 2020-06-19 15:53:59 -07: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
Andrey Semashev
4dc4ba018c Update no_exceptions_support.hpp header location to avoid deprecated warnings. (#204)
boost/detail/no_exceptions_support.hpp is deprecated and will be removed in a
future release.
2020-06-08 16:47:29 -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
Edward Diener
0eec916ab2 Changes for Embarcadero C++ clang-based compilers, targeting Boost 1.74 (#198)
* Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.

* More changes of __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.

* Embarcadero C++ clang-based compilers use chdir instead of _chdir on Windows. This was reported to them as a bug.

* Revert "Embarcadero C++ clang-based compilers use chdir instead of _chdir on Windows. This was reported to them as a bug."

This reverts commit d00a21f736.

* Put back the chdir definition change to exclude Embarcadero clang-based compilers.
2020-04-21 21:37:34 -07:00
Robert Ramey
88094d44b6 Merge pull request #191 from joaquintides/patch-1
avoided misleading indentation warning
boost-1.73.0.beta1 boost-1.73.0
2020-03-03 20:16:59 -08: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
Robert Ramey
489eef0e17 Merge pull request #184 from kanje/develop
Fix base class offset calculation in void_cast.hpp.
2019-12-12 08:51:43 -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
643cce2a9c new test - needs refinement - for pointer adjustment by reset object address 2019-10-20 14:10:04 -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
Robert Ramey
ece3187e24 Merge pull request #181 from HDembinski/strip_trailing_ws
stripping white space
2019-10-20 14:05:54 -07:00
Hans Dembinski
c813db7ad7 stripping white space 2019-10-20 22:49:29 +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
boost-1.72.0.beta1 boost-1.72.0
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
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
Robert Ramey
5dd938f4f1 Merge pull request #173 from glenfe/develop
Use boost::nvp from Boost.Core
2019-09-27 21:37:22 -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
84e9ab57a7 Merge pull request #151 from HDembinski/fix_warning
fix for warning regarding use of strerror
2019-03-20 08:17:23 -07:00
Hans Dembinski
0034b070bd fix for warning regarding use of strerror 2019-03-20 08:42:59 +01: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
7adafcbf01 final? fix for dll tests. Due to quirk in boost build, we can run these tests with static versions of boost. 2018-12-27 09:51:33 -08:00
Robert Ramey
669d266ec7 complete corrections for import/export/visitbility 2018-12-26 13:49:33 -08:00
Robert Ramey
361ed95f4c suppress static library tests for test_dll_exported. B2 generated invalid command line in this case. 2018-12-26 11:40:20 -08:00
Robert Ramey
b6d26f9a58 Merge branch 'develop' of https://github.com/boostorg/serialization into develop 2018-12-24 11:19:24 -08:00
Robert Ramey
cd8a989be4 update Appveyor files 2018-12-24 11:18:54 -08:00
Robert Ramey
ee50f8c911 adjustments to fix “exported” tests. 2018-12-24 08:52:50 -08: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