Robert Ramey
35ccd63f56
in the previous update, a couple of #pragmas were not properly suppressed for specific compilers. This fixes this so number of warnings under gcc is now a reasonable number.
2021-03-10 11:43:03 -08:00
Robert Ramey
cd7f64e0d7
Guard MSVC pragmas from clang-cl #230 - once more with feeling.
2021-03-02 08:40:01 -08:00
Robert Ramey
4b851994d6
Guard MSVC pragmas from clang-cl #230
2021-03-01 16:10:04 -08:00
Marian Klymov
b7e454f52f
Add missing #pragma warning (pop) ( #218 )
2021-01-20 10:42:03 -08:00
NamaNamazu
886080ef55
Fix typo in include guard. ( #226 )
2021-01-20 10:39:41 -08:00
nevilad
11ab51f97c
Correct build errors when building serialization with ( #224 )
...
BOOST_NO_STD_LOCALE defined
Signed-off-by: Alexey Romko <nevilad@yahoo.com >
2021-01-19 13:13:50 -08:00
Robert Ramey
e7e5978a54
corrected over zealous trimming of hash_map include files
...
bumped archive version # just in case I broke something
cleaned up test set hashed and test map hashed.
2021-01-01 14:00:37 -08:00
Robert Ramey
c5d199837b
minor adjustments to config files in the hopes of passing all git hub actions tests.
2020-12-23 11:27:58 -08:00
Robert Ramey
8899617fba
mixup some pragmas to suppress warnings
2020-11-08 15:16:35 -08:00
Robert Ramey
07c99b8649
removed unused file collection_size_type copy.hpp
...
I have no idea where this came from!
2020-09-30 21:52:04 -07:00
Robert Ramey
6dc1b1be94
Removed obsolete comment describing the workaround for compilers which fail to properly support Partial Template Function Ordering
2020-09-27 10:52:59 -07:00
Robert Ramey
f72b9fc8d9
included library_version.hpp in all appropriate places.
...
This should permit any header to be compiled without including any other headers.
2020-09-26 22:55:18 -07:00
Robert Ramey
1eb86f8c41
loose end from effort to separate serialization from archive.
2020-09-08 11:00:55 -07:00
Vassil Vassilev
e94aebed7a
Add missing include ( #211 )
...
This patch allows the header to be built standalone, as part of clang C++ modules builds.
2020-07-17 12:02:44 -07:00
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
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
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