Andrey Semashev
be8790115c
Added portable snprintf/vsnprintf definition.
...
This definitions is mostly a workaround for older MSVC versions that only
provided non-portable _snprintf etc. that are not fully conforming to
the standard snprintf. This implementation fixes its issues wrt. null
termination and returned values in case of buffer overflows.
On platforms that support the standard snprintf, the definitions in
the header are equivalent to the standard functions.
2022-12-09 03:53:01 +03:00
Peter Dimov
013c7856ce
Merge branch 'develop' into feature/bit
2022-09-21 21:41:43 +03:00
Andrey Semashev
1c79871f0f
Added dependency on Boost.Config to fclose_deleter_test CMake target.
2022-09-21 21:20:40 +03:00
Andrey Semashev
9cbf3ac420
Fixed fclose_deleter test failing to build with CMake.
...
Jamfile parser created incorrect test for fclose_deleter_test,
which resulted in a compiler error. Prevent the parser from creating
the test target by reformatting the Jamfile and create a CMake
target with proper dependencies.
2022-09-21 21:05:27 +03:00
Peter Dimov
2cc3e23447
Add test/bit_width_fail (refs #129 )
2022-09-21 19:19:02 +03:00
Andrey Semashev
00f4f11f14
Added a check for NULL pointer in fclose_deleter.
...
The deleter can be called on a null pointer by shared_ptr.
Also added tests with unique_ptr from Boost.Move and shared_ptr
from Boost.SmartPtr.
2022-09-21 18:09:42 +03:00
Andrey Semashev
3510f6244b
Added fclose_deleter.
...
fclose_deleter can be used as a deleter function object for std::FILE
pointers returned by std::fopen.
2022-09-21 13:50:22 +03:00
Peter Dimov
0ac87736f8
Explicitly disable sv_nullptr_fail when BOOST_NO_CXX11_NULLPTR is defined, because libc++ seems to have nullptr even in C++03 mode
2022-09-18 21:10:18 +03:00
Peter Dimov
1fa592c9ec
Add a deleted constructor from nullptr_t to string_view; closes #113
2022-09-18 13:53:55 +03:00
Andrey Semashev
162a4e1d24
Disabled warnings about deprecated builtins on clang-15.
...
The warnings are caused by Boost.TypeTraits:
https://github.com/boostorg/type_traits/issues/173
2022-09-10 02:49:25 +03:00
Glen Fernandes
e3745b2072
Add constexpr support to empty_value
2022-08-06 21:20:55 -04:00
Glen Fernandes
7100c05490
In C++03 use rebind<U>::other instead of rebind<U>
2022-07-17 10:06:51 -04:00
Peter Dimov
f941d2e1f7
Add tests for __int128 to type_name_test.cpp
2022-05-30 03:00:37 +03:00
Glen Fernandes
c0e2211c2b
Simplify test
2022-05-14 13:05:56 -04:00
Glen Fernandes
45e5b1ebcf
Add test around the MSVC defect
2022-05-14 00:51:05 -04:00
Glen Fernandes
42ed795866
Remove inline friend begin and end functions
2022-05-13 18:26:08 -04:00
Glen Fernandes
1e5c86eb9d
Add tests for the C++11 alias rebind
2022-04-26 14:10:21 -04:00
Glen Fernandes
5e0ff1680f
Use a different workaround for supporting noinit_adaptor in C++03
2022-03-15 14:47:39 -04:00
Glen Fernandes
4defdfd233
Add allocator_construct_n to allocator_access and deprecate alloc_construct
2022-03-12 10:45:05 -05:00
Glen Fernandes
c4deb479fd
Add detection support for single argument construct and destroy
2022-03-12 01:31:31 -05:00
Glen Fernandes
f326683d42
Add allocator_construct and allocator_destroy tests to Jamfile
2022-03-12 00:51:52 -05:00
Peter Dimov
a32c1ee7ac
Disable test under CMake, CTest doesn't like crashing tests
2022-02-15 06:49:46 +02:00
Peter Dimov
ec91f29d56
Disable msvc warnings
2022-02-15 06:49:46 +02:00
Peter Dimov
622b7a398a
Add core/verbose_terminate_handler.hpp
2022-02-15 06:49:46 +02:00
Peter Dimov
89d8efb7ff
Avoid -Wlong-long in bit_ceil_test.cpp
2022-02-08 22:58:45 +02:00
Peter Dimov
f12eeb6b9f
Avoid -Wlong-long in bit_rotate_test.cpp
2022-02-08 22:55:08 +02:00
Peter Dimov
6a5f726602
Add splitmix64_test.cpp
2022-02-08 22:48:01 +02:00
Peter Dimov
cf619432a7
Fix GCC -Wlong-long warnings
2022-02-08 22:00:42 +02:00
Peter Dimov
b38c148969
Enable -pedantic for the cmath.hpp and bit.hpp tests
2022-02-08 21:37:34 +02:00
Andrey Semashev
6ae6ff79f1
Deprecated boost/iterator.hpp, emit warnings on inclusion.
...
The header defines boost::iterator template, which is an alias for
std::iterator, which is itself deprecated since C++17.
Updated test to avoid testing the definition in C++17 onwards
to avoid failures due to deprecation warnings from libc++-13.
2021-12-23 16:46:29 +03:00
Peter Dimov
392cc988dd
Add sv_windows_h_test
2021-12-20 01:30:32 +02:00
Peter Dimov
0b9624d047
Add sv_common_reference_test2
2021-12-18 18:53:42 +02:00
Peter Dimov
6e6af5fc90
Update sv_common_reference_test to check BOOST_NO_CXX20_HDR_CONCEPTS
2021-12-18 18:18:19 +02:00
Peter Dimov
28d26d13f1
Add sv_common_reference_test
2021-12-18 07:34:16 +02:00
Peter Dimov
7a79d17da2
Add conversions from and to boost::string_view
2021-12-18 04:15:06 +02:00
Glen Fernandes
02b3f91fc3
Use same style of detection in pointer_traits and allocator_traits
2021-12-15 15:30:57 -05:00
Glen Fernandes
78dd0cce2f
Make pointer_to SFINAE friendlier
2021-12-15 09:31:34 -05:00
Glen Fernandes
0e62373aa2
Make pointer_traits SFINAE friendly
2021-12-13 13:13:12 -05:00
Glen Fernandes
6da7958281
Update unit tests
2021-12-08 10:26:49 -05:00
Glen Fernandes
febc195093
Add default_allocator allocate hint overload in C++03 mode
2021-12-04 14:41:23 -05:00
Glen Fernandes
8985ce604e
Simplify test
2021-12-04 14:39:36 -05:00
Glen Fernandes
c8b989d80b
Add allocator_traits that uses allocator_access
2021-12-03 23:55:40 -05:00
Peter Dimov
ef3505db59
Disable -Wtype-limits for g++ 4.4 in Jamfile
2021-11-01 04:44:07 +02:00
Peter Dimov
f94db671f6
Disable C4702 in lightweight_test_fail6, no_exceptions_support_test
2021-11-01 04:17:51 +02:00
Peter Dimov
7b45315af1
Avoid C4996 in sv_copy_test.cpp
2021-11-01 04:15:33 +02:00
Peter Dimov
9f2cdfa7d2
Disable C4244 in scoped_enum.cpp, underlying_type.cpp
2021-11-01 03:58:37 +02:00
Peter Dimov
f09ab90243
Disable -Wsign-compare for g++ 4.4
2021-11-01 03:14:53 +02:00
Peter Dimov
6a91536da6
Disable -Wunused-function in swap_array(_of_array)_of_class.cpp
2021-11-01 03:05:47 +02:00
Peter Dimov
e73e8bfc83
Disable C4512 in uncaught_exceptions(_np).cpp
2021-11-01 02:55:52 +02:00
Peter Dimov
a581a42c4f
Disable C4577 in no_exceptions_support_test.cpp
2021-11-01 02:50:16 +02:00