1
0
forked from boostorg/core

540 Commits

Author SHA1 Message Date
Peter Dimov f833040d48 Disable msvc warnings around tn_is_function 2021-10-05 05:42:41 +03:00
Peter Dimov 3b5595e940 Merge branch 'feature/type-name' into feature/lwt-type-name 2021-10-05 05:31:09 +03:00
Peter Dimov b93317815c Apply msvc-12.0 (and below) workarounds 2021-10-05 05:30:37 +03:00
Peter Dimov 36cec9a5cc Handle references to functions 2021-10-05 05:01:05 +03:00
Peter Dimov 290340fd27 Use core::type_name in lightweight_test_trait 2021-10-05 04:58:52 +03:00
Peter Dimov c8b55f1bde Change BOOST_CONSTEXPR to BOOST_CXX14_CONSTEXPR appropriately 2021-10-04 19:12:05 +03:00
Peter Dimov 62ba7ca18b Define npos as BOOST_CONSTEXPR_OR_CONST 2021-10-04 19:08:12 +03:00
Peter Dimov 964dfe2b74 Fix line endings 2021-10-04 17:45:24 +03:00
Peter Dimov 7d05dfa87d Add sv_construct_test 2021-10-04 17:25:34 +03:00
Peter Dimov 95924b1329 Add boost/core/string_view.hpp 2021-10-04 16:49:46 +03:00
Peter Dimov 5e382efa84 Fix std::ostream failure on libstdc++ 2021-10-01 15:51:13 +03:00
Peter Dimov e260bb865d Add support for string_view 2021-10-01 15:07:19 +03:00
Peter Dimov f884833b42 Add workaround for msvc-10.0 2021-09-30 03:21:31 +03:00
Peter Dimov a5cbddc466 Add test for enums 2021-09-29 21:09:19 +03:00
Peter Dimov 91a64b3bcf Add support for std::array 2021-09-29 21:02:39 +03:00
Peter Dimov a039f8c318 Support -fno-rtti 2021-09-29 20:53:38 +03:00
Peter Dimov bebb7349ba Add workarounds for msvc-12.0 and earlier 2021-09-29 20:05:23 +03:00
Peter Dimov dc6e3261ec Use typedef instead of using 2021-09-29 19:51:16 +03:00
Peter Dimov 15a7d84858 Use basic_string<char8_t> instead of u8string 2021-09-29 19:50:14 +03:00
Peter Dimov 06023d4ffe Strip libstdc++ and libc++ inline namespaces 2021-09-29 19:34:37 +03:00
Peter Dimov 3e0bc52c32 Add <boost/core/type_name.hpp> 2021-09-29 19:13:12 +03:00
Peter Dimov 177c093151 Automatically use generic cmath if FP_SUBNORMAL isn't defined 2021-09-14 18:57:33 +03:00
Peter Dimov 8043bafb6b Add a generic cmath.hpp implementation, enabled when BOOST_CORE_USE_GENERIC_CMATH is defined 2021-09-14 16:50:34 +03:00
Peter Dimov df91243a1d Whether wchar_t is signed is implementation-defined 2021-08-21 20:28:47 +03:00
Evan Miller 128d9314d6 Restore support for ancient Mac OS
Mac OS 10.4 and earlier lack Availability.h, causing compilation to
fail. Rearrange the macro logic to include Availability.h only if we
already think there may be support for uncaught exceptions.
2021-07-01 16:32:40 -04:00
Peter Dimov 012d96a72b Use non-const references in non-variadic branch as well 2021-06-10 10:09:46 +03:00
Peter Dimov 27d700ec01 Use non-const references in ignore_unused to avoid g++-11 warning 2021-06-10 09:54:51 +03:00
Glen Fernandes ddbaa242a9 Update copyright comments 2021-02-16 02:14:14 -05:00
Glen Fernandes 86bff4c2d3 Revise allocator access utilities
Now supports MSVC 2013, and no workarounds use allocator_traits.
2021-02-15 22:11:41 -05:00
Peter Dimov afba04cf7f Output non-printable chars as \xXY 2021-01-20 02:38:57 +02:00
Peter Dimov 2729beab83 Print char types as numeric values (C++20 deletes these ostream overloads) 2021-01-20 01:54:37 +02:00
Peter Dimov fa82b680cf Work around clang++ 3.3 failure 2020-12-30 19:40:52 +02:00
Peter Dimov 16e9536146 Implement boost::core::endian 2020-12-29 02:41:15 +02:00
Peter Dimov 919b98d425 Use __builtin_popcount 2020-12-29 02:06:56 +02:00
Peter Dimov e8aa0c75b4 Use _BitScanForward 2020-12-29 02:02:33 +02:00
Peter Dimov 8bd2239b0b Use __builtin_ctz 2020-12-29 01:56:34 +02:00
Peter Dimov c838ebc003 Use _BitScanReverse 2020-12-29 01:53:30 +02:00
Peter Dimov aca46fae91 Use __builtin_clz 2020-12-29 01:28:59 +02:00
Peter Dimov 409c809cd8 Add popcount 2020-12-29 01:06:22 +02:00
Peter Dimov 26728848b4 Add bit_ceil 2020-12-29 00:29:44 +02:00
Peter Dimov cc877e6b5b Add countl_zero, countl_one 2020-12-28 23:40:59 +02:00
Peter Dimov a47eebf41a Add countr_zero, countr_one 2020-12-28 21:52:02 +02:00
Peter Dimov 045487ba96 Add boost/core/bit.hpp (bit_cast, rotl, rotr) 2020-12-28 21:12:22 +02:00
Peter Dimov bee040b8cc Add fpclassify. 2020-12-24 00:58:56 +02:00
Peter Dimov c307f86520 Add core/cmath.hpp 2020-12-24 00:19:20 +02:00
Peter Dimov 72089753f7 Add Doxygen annotation 2020-11-21 18:18:31 +02:00
Peter Dimov 54671134ae Add implicit conversion between compatible reference wrappers (refs #83) 2020-11-19 18:57:56 +02:00
Andrey Semashev dcc04c5508 Added a workaround for uncaught_exceptions for older Mac OS and iOS.
libc++ disables std::uncaught_exceptions for Mac OS < 10.12 and
iOS < 10.0, even though it defines __cpp_lib_uncaught_exceptions.

Fixes https://github.com/boostorg/core/issues/80.
2020-07-20 23:13:42 +03:00
Glen Fernandes 484487f958 MSVC2017 /std:c++17 warnings in allocator access 2020-07-17 09:30:00 -04:00
Andrey Semashev 503d035b7f Added a workaround for uncaught_exceptions on AIX with xlclang++.
The compiler provides cxxabi.h header but doesn't have __cxa_get_globals,
even in the ABI library. We have to disable __cxa_get_globals-based
implementation and fall back to std::uncaught_exception.

Fixes https://github.com/boostorg/core/issues/78.
2020-07-16 20:53:09 +03:00