1
0
forked from boostorg/core
Commit Graph

364 Commits

Author SHA1 Message Date
Matt Borland
db916e4673 Correct test macro and add undef 2022-12-06 08:10:14 -08:00
Matt Borland
3eaba7afc0 Fix for sprintf deprecation warning 2022-12-05 20:34:46 -08:00
Peter Dimov
b407b5d87d Change bit_width to return int, LWG3656 has been applied as a DR to C++20 2022-09-22 01:31:01 +03:00
Peter Dimov
013c7856ce Merge branch 'develop' into feature/bit 2022-09-21 21:41:43 +03:00
Peter Dimov
66a742f41e Statically assert the unsigned integer requirements in bit.hpp. Fixes #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
1fa592c9ec Add a deleted constructor from nullptr_t to string_view; closes #113 2022-09-18 13:53:55 +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
b6c3190468 Add tn_holder specializations for __int128 (avoids macOS link errors for missing typeinfo for same) 2022-05-30 04:03:18 +03:00
Peter Dimov
8645bcb06e Merge pull request #101 from boostorg/feature/bit_use_if_constexpr
bit.hpp: Use C++17 if constexpr where possible
2022-05-14 04:35:13 +03:00
Glen Fernandes
42ed795866 Remove inline friend begin and end functions 2022-05-13 18:26:08 -04:00
Peter Dimov
0212774324 Avoid -Wshadow warning under g++ 4.8 2022-04-29 02:43:37 +03:00
Peter Dimov
0011697492 Add hash_value (refs #110) 2022-04-28 20:42:48 +03:00
Glen Fernandes
d74140983d Correct definition of C++11 alias rebind 2022-04-26 14:11:31 -04:00
Yichen Wang
44610b65ba Fix typo 2022-04-19 15:26:36 +08: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
Peter Dimov
230dd83002 Add newlines, fflush 2022-02-15 06:49:46 +02:00
Peter Dimov
188ca25bf3 Mark verbose_terminate_handler as inline 2022-02-15 06:49:46 +02:00
Peter Dimov
ed84fc4e23 Document verbose_terminate_handler 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
b7c987f83c Mark quick_exit as inline 2022-02-15 02:08:30 +02:00
Peter Dimov
ad63dcda9f Fix -Wlong-long warnings in splitmix64.hpp 2022-02-08 22:49:44 +02:00
Peter Dimov
cf619432a7 Fix GCC -Wlong-long warnings 2022-02-08 22:00:42 +02:00
Peter Dimov
bae7c049b0 Avoid conversion warning in bit_width 2022-01-19 17:20:39 +02:00
Peter Dimov
df3b9827cf Enclose std::min in parentheses to guard against <windows.h> 2021-12-20 01:35:55 +02:00
Peter Dimov
574c7cf86e Update string_view.hpp to use BOOST_NO_CXX20_HDR_CONCEPTS 2021-12-18 18:39:03 +02:00
Peter Dimov
95f2a76c90 Specialize std::basic_common_reference to enable std::common_reference and std::common_reference_with 2021-12-18 07:43:33 +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
c8479b4eca Simplify C++03 detection traits slightly 2021-12-07 21:17:28 -05:00
Glen Fernandes
eb7bc1ff53 Support additional is_empty intrinsics 2021-12-07 10:10:07 -05:00
Glen Fernandes
d038633f98 Correct spelling of detail macro 2021-12-07 02:57:14 -05:00
Glen Fernandes
85a3183c01 Update bool constant 2021-12-06 23:36:48 -05:00
Glen Fernandes
0c9675cf56 Add partial C++03 support for C++11 allocator model 2021-12-06 19:56:57 -05:00
Glen Fernandes
5abadf4472 Change A::value_type to allocator_value_type 2021-12-06 16:41:16 -05:00
Glen Fernandes
6b3fb219cc Minor refactoring in allocator access 2021-12-06 15:58:48 -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
46f37b2f16 Make max_size noexcept 2021-12-04 00:24:45 -05:00
Glen Fernandes
c8b989d80b Add allocator_traits that uses allocator_access 2021-12-03 23:55:40 -05:00
Glen Fernandes
74c770206a Allow all individual traits to be specialized 2021-12-02 23:09:09 -05:00
Andrey Semashev
213e4695bf Use C++17 if constexpr where possible. 2021-11-01 22:35:28 +03:00
Glen Fernandes
a4172b4319 MSVC warning workaround for empty_value 2021-11-01 06:33:44 -04:00
Peter Dimov
e4fb94b73c Merge branch 'develop' into feature/warnings-as-errors 2021-11-01 05:12:33 +02:00
Peter Dimov
bdd4bf7d9a #pragma GCC diagnostic push requires g++ 4.6 2021-11-01 04:04:52 +02:00