Commit Graph
189 Commits
Author SHA1 Message Date
Peter Dimov 41ff095c0a Try to fix the false positive with GCC ASAN 2024-06-03 02:40:13 +03:00
Peter Dimov 38d63aaf7c strerror_r(ev, tmp, 0) may return tmp 2024-06-02 23:03:24 +03:00
Mohammad Nejati 4d4f906548 strerror_r requires non-null buffer pointer
Fixes -Wnonnull warnings when calling message with a nullptr buffer
2024-06-02 18:21:07 +00:00
Peter Dimov abbfd46517 Remove uses of BOOST_NOEXCEPT 2024-01-17 07:14:05 +02:00
Peter Dimov 128fd9341f Remove uses of BOOST_CONSTEXPR 2024-01-17 07:09:31 +02:00
Peter Dimov 3ded81eed0 Remove uses of BOOST_SYSTEM_HAS_SYSTEM_ERROR 2024-01-17 06:49:19 +02:00
Peter Dimov 80e019069c Use snprintf in error_category_impl.hpp 2024-01-17 05:18:23 +02:00
Peter Dimov 00fb79f174 Remove requires_cxx11.hpp 2024-01-17 04:47:46 +02:00
Peter Dimov 44582f3c3c Use std::snprintf in detail/snprintf.hpp 2024-01-17 04:34:11 +02:00
Peter Dimov f08e363c0e Use std::is_same in detail/is_same.hpp 2024-01-17 04:33:14 +02:00
Peter Dimov 1474498ccf Use std::enable_if in detail/enable_if.hpp 2024-01-17 04:32:29 +02:00
Peter Dimov 945b0591dd Unconditionally enable BOOST_SYSTEM_HAS_SYSTEM_ERROR 2024-01-17 04:14:23 +02:00
Peter Dimov 1a0b9a46a8 Remove static_assert workaround 2024-01-17 04:12:13 +02:00
Peter Dimov f132dca4a9 Remove =default/=delete workarounds 2024-01-17 04:11:19 +02:00
Peter Dimov 81a9952695 Remove BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS workarounds 2024-01-17 03:57:53 +02:00
Peter Dimov 84fd43e14a Update C++03 deprecation message 2023-10-19 18:15:05 +03:00
Peter Dimov a57c568324 Do not use <shared_mutex> when BOOST_USE_WINAPI_VERSION is 0x5xx (Windows XP). Fixes #113. 2023-09-04 16:28:34 +03:00
Peter Dimov 2e7e46a802 Update C++03 deprecation message 2023-06-03 02:31:27 +03:00
Peter Dimov 32dbf1b992 Disable use of <shared_mutex> under the XP toolsets (v140_xp and v141_xp). Fixes #110. 2023-04-30 18:44:56 +03:00
Peter Dimov ee80491cab Add C++03 deprecation notice 2023-03-06 07:49:33 +02:00
Peter Dimov 4b90524729 Disable the constexpr constructors on GCC 4.7 2023-03-01 05:18:23 +02:00
Peter Dimov 6ac5f23999 Make error_category constructors unconditionally constexpr 2023-03-01 03:36:07 +02:00
Peter Dimov 71ee26c188 Move the stdcat mutex into init_stdcat() as a local static to fix msvc-12.0 2023-01-20 01:22:42 +02:00
Peter Dimov 8449c62162 Update detail/mutex.hpp to use std::shared_mutex under the MS STL 2023-01-19 18:05:21 +02:00
Peter Dimov 3e6af15652 Add system/detail/mutex.hpp, use it in error_category_impl.hpp 2023-01-19 12:04:06 +02:00
Peter Dimov b3faedfe3e Extend Clang 6 workaround to Clang 7 under Android. Fixes #100. 2023-01-10 03:09:20 +02:00
Peter Dimov 32bf67f748 error_code wrapping std::error_code should never compare equal to error_code not wrapping std (because of hash_value.) Fixes #101. 2023-01-07 19:56:34 +02:00
Peter Dimov 36e1236a0f Remove _Addr assignment from the constructor of std_category. Fixes #98. 2022-12-10 22:17:51 +02:00
Peter Dimov 14f779e234 Update Win32 translation table. Closes #97. 2022-12-10 18:38:19 +02:00
Peter Dimov 7ae6b317f3 Only disable C4351 on msvc-12.0 and earlier (refs #96) 2022-10-26 15:52:18 +03:00
Peter Dimov 53c00841fc Add support for BOOST_SYSTEM_DISABLE_THREADS (refs #92) 2022-09-08 18:32:26 +03:00
Peter Dimov 3faf415026 Resolve ambiguities when comparing error_condition with std enums (refs #91) 2022-08-24 22:56:15 +03:00
Peter Dimov efb7634666 Move code/condition comparisons back outside class error_code; fixes #91 2022-08-24 21:10:05 +03:00
Peter Dimov 8c740705e6 Add missing include 2022-08-21 19:42:10 +03:00
Vinnie Falco ac1ed1ecc1 error_code default ctor is constexpr in c++11 2022-08-21 08:17:54 -07:00
Peter Dimov 648a35838b Remove unnecessary overloads 2022-05-05 05:12:08 +03:00
Peter Dimov 256fe92dbb Add error_code(error_code const& ec, source_location const* loc) and a corresponding assign 2022-05-05 05:02:37 +03:00
Peter Dimov a97e5a0546 Move BOOST_NOINLINE to operator std::error_category 2022-04-22 22:41:26 +03:00
Peter Dimov 9279001b8c Check BOOST_NO_CXX11_HDR_MUTEX when enabling <system_error> integration 2022-04-22 16:49:03 +03:00
Peter Dimov 616e652bd7 Suppress strict-aliasing warning for gcc 4.8 to 6 2022-04-21 21:06:14 +03:00
Peter Dimov 98439855bd Use static_cast instead of reinterpret_cast 2022-04-21 20:52:02 +03:00
Peter Dimov 986efb1420 Rework conversion to std::error_category to not allocate (closes #78) 2022-04-21 20:32:25 +03:00
Peter Dimov 28a13571b9 Restore the original system::error_code from std::error_code (refs #79) 2022-03-18 18:24:01 +02:00
Peter Dimov 0a9266ea7e Add a comment explaining the one-time allocation in error_category_impl.hpp. Fixes #78. 2022-03-18 08:11:16 +02:00
Peter Dimov de610efd53 Move conditions to detail/config.hpp 2022-02-07 03:16:23 +02:00
Peter Dimov 4b143cdacc Use BOOST_LIBSTDCXX_VERSION instead of BOOST_GCC; update syscat condition 2022-02-07 03:02:57 +02:00
Peter Dimov b9c26b9fa0 Add detail::system_error_category_message, use it in error_code::message 2022-02-03 05:47:43 +02:00
Peter Dimov 2e2430c4fa Add error_code::category_name helper, use it in to_string 2022-02-03 04:36:58 +02:00
Peter Dimov 4b1caad727 Avoid sign conversion warnings in error_code::value 2022-01-19 17:30:56 +02:00
Marcel Raad 86b031cab9 Fix error_code's operator<< for arbitrary basic_ostream specializations
This fixes a regression from commit
https://github.com/boostorg/system/commit/a9b64a888a24400cc2af9910a6ff88c3c4fd3210.
Calling `operator<<` with `std::string` only works for `std::ostream`.
Use `c_str()` to restore the previous behavior of using `const char*`,
which works for any `basic_ostream` specialization.
2021-12-21 13:17:26 +01:00