Commit Graph
67 Commits
Author SHA1 Message Date
Peter Dimov 6bc7edbfa8 Rename generic_category_impl.hpp to generic_category_message.hpp 2020-08-27 02:59:30 +03:00
Peter Dimov c345b86b0a Restore generic_category_impl.hpp; functions are needed by system_category 2020-08-27 02:56:18 +03:00
Peter Dimov 13bac420ab Move op!= for error_condition 2020-08-27 02:26:32 +03:00
Peter Dimov abc94afdb2 Extract error_code into its own header 2020-08-27 02:23:50 +03:00
Peter Dimov 867ac5b446 Move generic_category(), system_category() to their respective headers; extract error_condition into its own header 2020-08-27 02:07:22 +03:00
Peter Dimov d50db54c44 Move failed_impl into error_category.hpp 2020-08-27 01:36:44 +03:00
Peter Dimov 72ea1ef846 Extract enable_if into its own header 2020-08-27 01:21:56 +03:00
Peter Dimov d581eb203e Extract system_error_category into its own header 2020-08-27 01:15:28 +03:00
Peter Dimov 3047581c75 Remove generic_category_impl.hpp 2020-08-27 01:06:54 +03:00
Peter Dimov ddd679e6d7 Extract generic_error_category into its own header 2020-08-27 01:06:07 +03:00
Peter Dimov 4ec6c99148 Rename detail/generic_category.hpp 2020-08-27 00:51:03 +03:00
Peter Dimov 7b56fd9acf Extract error_category into its own header 2020-08-27 00:47:48 +03:00
Peter Dimov b6a447cdde Extract errc into its own header 2020-08-27 00:31:45 +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 6942dc454b Fix unsupported use of BOOST_SYMBOL_VISIBLE on Sun C++ 2020-01-24 20:59:12 +02: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 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 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 e87cd333a8 Work around 'unused variable' MSVC warning 2018-10-02 18:39:41 +03:00
Peter Dimov 78a1813c13 Merge branch 'develop' into feature/use-utf8 2018-10-02 04:36:25 +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 b300fdeef4 Use CP_UTF8 when BOOST_SYSTEM_USE_UTF8 is defined 2018-09-21 20:45:44 +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 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 34600a62df The constexpr workarounds are no longer needed 2018-09-16 06:15:22 +03:00
Peter Dimov 57ecfeb2c2 Use map::insert instead of map::emplace, which doesn't work on g++ pre-6 (and msvc-10.0) 2018-09-16 05:58:29 +03:00
Peter Dimov 731df11ffd Add system_category_posix.hpp; remove BOOST_SYSTEM_WIN32 2018-09-16 05:44:58 +03:00
Peter Dimov 038786179a Remove unnecessary files 2018-09-16 03:05:17 +03:00
Peter Dimov 2fa0a00583 Make Boost.System header-only 2018-09-16 03:04:19 +03:00
Peter Dimov 587ceaf739 Enable constexpr in header-only mode as well 2018-01-22 04:56:40 +02:00
Peter Dimov 77817d8847 Fix MinGW link errors by properly exporting symbols 2018-01-22 02:20:01 +02:00
Peter Dimov 61b4d8ef24 Fix variant=release link errors 2018-01-21 21:42:22 +02:00
Peter Dimov 7b6dcf6ac6 Make error_code, error_condition literal if C++14 constexpr is available 2018-01-14 07:24:00 +02:00
Peter Dimov d28c6ff128 Do not put categories in an unnamed namespace, as this is an ODR violation in header-only mode 2018-01-14 05:56:15 +02:00
Daniela Engert 706659a97f std::basic_string::size() may return a size_type which is wider than an int.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-12-16 10:40:49 +01:00
Peter Dimov e367d65b6e Fix use of _alloca under g++/clang (mingw/cygwin) 2017-11-01 20:59:34 +02:00
Zang MingJie 0daba59730 Fix MSVC compile error 2017-11-02 01:32:18 +08:00