Commit Graph

168 Commits

Author SHA1 Message Date
Peter Dimov
f00c76a3fc Include and test system_error.hpp in warnings_test 2020-06-17 01:13:16 +03:00
Peter Dimov
73bf30ae04 Enable -Wsuggest-override in warnings_test; add BOOST_OVERRIDE appropriately 2020-06-17 01:06:40 +03:00
Peter Dimov
5d3365717e Revert "Revert operator bool() to its pre-failed value() != 0 meaning"
This reverts commit 3164b387a5.
2020-06-16 20:24:23 +03:00
Peter Dimov
6942dc454b Fix unsupported use of BOOST_SYMBOL_VISIBLE on Sun C++ 2020-01-24 20:59:12 +02:00
Peter Dimov
7ba160e443 Rename id to id_ to avoid ObjC++ parsing issues. Fixes #52. 2020-01-18 22:15:44 +02:00
Thomas Barbier
08370c9158 Fix c++17 warning redundant redeclaration of 'constexpr' static data
member [-Werror=deprecated]
2019-10-01 18:49:31 +02:00
Peter Dimov
c08b8a94ea Fix sign extension (warning 4826.) Closes #48. 2019-05-24 18:55:27 +03:00
Peter Dimov
dc2ad73e30 Merge pull request #47 from KABoissonneault/feature/issue_46
Added boost::winapi::ERROR_CONNECTION_ABORTED_ to handled error codes…
2019-05-13 18:14:54 -07:00
Kévin Alexandre Boissonneault
32a6c13533 Added boost::winapi::ERROR_CONNECTION_ABORTED_ to handled error codes in Win32's system_category, making it equivalent to errc::connection_aborted 2019-05-13 18:08:24 -04:00
Peter Dimov
bfbc5ec42f Remove BOOST_SYSTEM_REQUIRE_CONST_INIT; variables are constexpr, so no longer needed. Closes #45. 2019-05-12 04:15:35 +03:00
Peter Dimov
9deadda4b4 Merge branch 'feature/system-generic-visible' into feature/std-ec-mismatch 2019-04-25 20:54:01 +03:00
Peter Dimov
3b6315e4a1 Add BOOST_SYMBOL_VISIBLE to system_category(), generic_category() 2019-04-25 16:55:13 +03:00
Peter Dimov
1d845408dd Fix thread safety issue in std interop 2019-04-25 01:01:48 +03:00
Peter Dimov
e08e4253d0 Avoid allocation on interop for system/generic categories; fix DLL interoperability on msvc-14.x by poking into std::system_category::_Addr 2019-04-25 00:31:25 +03:00
Peter Dimov
afc51937be Mark to_std_category as BOOST_SYMBOL_VISIBLE 2019-04-24 23:18:19 +03:00
Peter Dimov
9b8cb7f1f6 Fix wrong null character stripping for FormatMessage (Nikita Kniazev) 2019-03-24 01:59:23 +02:00
Peter Dimov
c705bab504 #pragma GCC diagnostic push/pop requires gcc 4.6 2019-03-04 17:38:52 +02:00
Peter Dimov
af1dc84160 Disable -Wnon-virtual-dtor 2019-03-04 16:35:35 +02:00
Peter Dimov
3164b387a5 Revert operator bool() to its pre-failed value() != 0 meaning 2019-02-27 21:10:57 +02:00
Peter Dimov
ef7c34fc30 Remove use of _alloca 2019-02-26 17:22:58 +02:00
Peter Dimov
3a4fff686e Fix warnings on clang-win 2018-10-27 05:30:27 +03:00
Peter Dimov
504fb05c2f Make system_error(ec) explicit, return by value from system_error::code() 2018-10-03 01:15:43 +03:00
Peter Dimov
fb44b43f0a Merge branch 'develop' into feature/asciidoc 2018-10-02 23:02:24 +03:00
Peter Dimov
e87cd333a8 Work around 'unused variable' MSVC warning 2018-10-02 18:39:41 +03:00
Peter Dimov
3d01409fe6 Avoid long long warnings 2018-10-02 17:51:09 +03:00
Peter Dimov
78a1813c13 Merge branch 'develop' into feature/use-utf8 2018-10-02 04:36:25 +03:00
Peter Dimov
1e6dc86a68 Change code to match documentation 2018-10-02 02:59:03 +03:00
Peter Dimov
584f9731ad Refactor BOOST_SYSTEM_USE_UTF8 code 2018-10-01 17:40:16 +03:00
Peter Dimov
91aeb86f57 Disable constexpr on g++ 5 2018-09-22 21:00:06 +03:00
Peter Dimov
e7c1079c4f Try to work around g++-5 constexpr issue in failed_impl 2018-09-22 20:05:31 +03:00
Peter Dimov
f48cc5aec6 Add failed() 2018-09-22 17:34:40 +03:00
Peter Dimov
349fb30e8e Remove the user-provided ~error_category in C++03 mode, to fix use after main 2018-09-22 16:15:49 +03:00
Peter Dimov
b300fdeef4 Use CP_UTF8 when BOOST_SYSTEM_USE_UTF8 is defined 2018-09-21 20:45:44 +03:00
Peter Dimov
24179e73c9 Move message() at its standard place, next to its other overload 2018-09-21 17:19:50 +03:00
Peter Dimov
c182707dfe Merge branch 'develop' into feature/message_r 2018-09-21 17:08:31 +03:00
Peter Dimov
d79e38e5d5 Remove noexcept from conversions to std::error_code/condition; they allocate and can throw 2018-09-21 17:07:51 +03:00
Peter Dimov
73de31c541 MinGW32 doesn't have std::snprintf 2018-09-21 16:01:29 +03:00
Peter Dimov
7b401cef93 Improve Windows implementation of message() 2018-09-21 06:45:56 +03:00
Peter Dimov
e180bfe37e Add system_category_test; fix Windows implementation 2018-09-21 04:51:50 +03:00
Peter Dimov
ec93d058fe Add a noexcept overload of message() taking a buffer 2018-09-21 03:16:55 +03:00
Peter Dimov
af9646c582 Fix #endif placement 2018-09-19 01:10:12 +03:00
Peter Dimov
515fbb21b4 Use strerror_r on glibc 2018-09-18 22:21:13 +03:00
Peter Dimov
465e9e019e Remove noexcept from operator std::error_category const& (allocates and can throw) 2018-09-17 20:12:10 +03:00
Peter Dimov
11a908a3fe Fix hash_value 2018-09-17 18:18:37 +03:00
Peter Dimov
a9e56e1a6a Remove dependency on type_traits 2018-09-17 03:21:42 +03:00
Peter Dimov
041678752b Revert deletion of BOOST_*_API check 2018-09-17 02:55:40 +03:00
Peter Dimov
56651f6633 Disable <system_error> interoperation on g++ 4.4/4.5 2018-09-16 20:49:33 +03:00
Peter Dimov
6bd05dc92d Add BOOST_SYMBOL_VISIBLE to category classes to placate UBSan 2018-09-16 19:32:38 +03:00
Peter Dimov
81c34ab7a4 Remove autolink 2018-09-16 07:06:04 +03:00
Peter Dimov
9d86d0296e Revert boost/system/config.hpp 2018-09-16 07:04:27 +03:00