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
|
6d7a57a970
|
Add throw_exception_from_error overload for std::exception_ptr
|
2022-02-18 02:55:34 +02:00 |
|
Peter Dimov
|
00c71cf388
|
Add throw_exception_from_error overloads for boost::system::errc, std::errc
|
2022-02-17 21:55:47 +02:00 |
|
Peter Dimov
|
4f09f4adde
|
Use throw_with_location in throw_exception_from_error
|
2022-02-13 22:50:20 +02:00 |
|
Peter Dimov
|
abd62362ef
|
Update documentation
|
2022-02-09 20:52:23 +02:00 |
|
Peter Dimov
|
8d8e6a90de
|
Add an errc::make_error_code overload taking a source location
|
2022-02-09 20:41:34 +02:00 |
|
Peter Dimov
|
46a5ecd490
|
Do not include boost/system/result.hpp on GCC 4.7
|
2022-02-07 21:38:14 +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
|
b92be6417a
|
Add a source_location parameter to throw_exception_from_error
|
2022-02-05 05:24:29 +02:00 |
|
Peter Dimov
|
c359af3141
|
Update system_error constructors
|
2022-02-04 21:34:14 +02:00 |
|
Peter Dimov
|
9554d8bbd3
|
Suppress incorrect warnings from GCC 7/8
|
2022-02-03 19:02:19 +02:00 |
|
Peter Dimov
|
a5d68e52e6
|
Add throw_exception_from_error overload for std::error_code
|
2022-02-03 18:35:42 +02:00 |
|
Peter Dimov
|
9c6a09f41d
|
Mark throw_exception_from_error as noinline
|
2022-02-03 09:37:59 +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 |
|
Peter Dimov
|
5b96abbaa8
|
Undeprecate linux_error.hpp (closes #77)
|
2021-12-27 02:53:04 +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 |
|
Peter Dimov
|
01ce081470
|
Disable errc_t -> arithmetic conversions when initializing result (closes #74)
|
2021-12-11 01:22:08 +02:00 |
|
Peter Dimov
|
f78b036665
|
Update #if condition
|
2021-10-29 21:13:10 +03:00 |
|
Ed Catmur
|
9b0d735040
|
Add __attribute__((__format__)) to snprintf
This attribute will check format string bugs and is required for clean compile if -Wformat-nonliteral is enabled.
|
2021-10-29 11:59:03 +01:00 |
|
Peter Dimov
|
4ec1e54099
|
Enable error_code construction from enums specializing std::is_error_code_enum. Fixes #70.
|
2021-10-11 02:02:22 +03:00 |
|
Peter Dimov
|
5217e58a7d
|
Enable implicit construction for aggregates using {{ ... }}
|
2021-10-02 22:07:05 +03:00 |
|
Peter Dimov
|
ce37e23491
|
Protect against dangling references in op* and value()
|
2021-10-02 19:16:04 +03:00 |
|
Peter Dimov
|
bb775c071a
|
Update system_error::what to use error_code::what
|
2021-10-02 15:00:40 +03:00 |
|
Peter Dimov
|
eefcc5dcf6
|
Add error_code::what
|
2021-10-02 14:41:27 +03:00 |
|
Peter Dimov
|
0ccf08509b
|
Add a constructor taking ErrorCodeEnum and a source location
|
2021-10-01 23:04:04 +03:00 |
|
Peter Dimov
|
7a72aee355
|
Merge branch 'develop' into feature/std-category-2
|
2021-09-24 23:54:51 +03:00 |
|
Peter Dimov
|
a8df99e927
|
Use source_location::to_string in system_error::build_message
|
2021-09-24 20:40:19 +03:00 |
|
Peter Dimov
|
85c7d92302
|
Avoid instantiating the system category in error_code::operator std::error_code
|
2021-09-24 15:24:45 +03:00 |
|
Peter Dimov
|
1659dfbeba
|
Avoid instantiating generic_category in error_condition::operator std::error_condition
|
2021-09-24 04:27:08 +03:00 |
|
Peter Dimov
|
d2b8b54356
|
Do not use std::system_category under MinGW and g++ 4.x
|
2021-09-21 16:35:40 +03:00 |
|
Peter Dimov
|
41f7ea49cb
|
Do not use std::system_category under VS2013
|
2021-09-21 16:02:12 +03:00 |
|
Peter Dimov
|
ad66ea43a3
|
Revert addition of get_generic_std_category, get_system_std_category (they need this); do not use std::system_category on Cygwin
|
2021-09-21 15:45:00 +03:00 |
|
Peter Dimov
|
9b11d864be
|
Add helper functions get_generic_std_category, get_system_std_category
|
2021-09-21 15:01:44 +03:00 |
|
Peter Dimov
|
cc6a61b6c5
|
Convert system_category to std::system_category
|
2021-09-21 05:34:05 +03:00 |
|
Peter Dimov
|
9151633c95
|
Merge branch 'develop' into feature/std-category
|
2021-09-20 17:41:47 +03:00 |
|
Peter Dimov
|
5e0db22075
|
Include errc.hpp in system_error.hpp
|
2021-09-20 17:41:34 +03:00 |
|
Peter Dimov
|
60a20eeeb9
|
Retain old generic_category conversion behavior on g++ 4.8/4.9
|
2021-09-19 18:44:45 +03:00 |
|
Peter Dimov
|
b1dec88674
|
Convert generic_category to std::generic_category
|
2021-09-19 17:08:46 +03:00 |
|
Peter Dimov
|
5fd2535d9f
|
Excise generic_category() references from error_condition
|
2021-09-19 16:04:16 +03:00 |
|