Peter Dimov
c359af3141
Update system_error constructors
2022-02-04 21:34:14 +02:00
Peter Dimov
50cad72fac
Update system_error_test3.cpp
2022-02-04 21:22:35 +02:00
Peter Dimov
9554d8bbd3
Suppress incorrect warnings from GCC 7/8
2022-02-03 19:02:19 +02:00
Peter Dimov
cf9d986871
Update documentation
2022-02-03 18:47:53 +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
Peter Dimov
2e1c800d82
Update appveyor.yml
2021-12-21 22:35:10 +02:00
Peter Dimov
04a79d710f
Merge branch 'fix_error_code_wostream' of https://github.com/MarcelRaad/system into feature/pr-76
2021-12-21 19:51:50 +02:00
Peter Dimov
5700936367
Add ec_wstream_test (refs #76 )
2021-12-21 19:51:08 +02:00
Marcel Raad
86b031cab9
Fix error_code's operator<< for arbitrary basic_ostream specializations
...
This fixes a regression from commit
a9b64a888a .
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
204e65f725
Add msvc-14.0 to GHA
2021-12-11 03:42:52 +02:00
Peter Dimov
01ce081470
Disable errc_t -> arithmetic conversions when initializing result ( closes #74 )
2021-12-11 01:22:08 +02:00
Peter Dimov
8c9ceba775
Add negative test for constructing result<int> from errc_t (refs #74 )
2021-12-09 20:19:05 +02:00
Peter Dimov
91c0dd9a74
Merge pull request #73 from kpushkaryov/patch-1
...
Fix a typo
boost-1.78.0
2021-11-17 06:24:18 +02:00
Kirill Pushkaryov
189fff42fe
Fix a typo
2021-11-17 10:59:03 +07:00
Peter Dimov
3b4045c149
Minor doc update
2021-11-17 04:11:15 +02:00
Peter Dimov
3d877a1fca
Update meta/libraries.json
2021-11-11 04:51:03 +02:00
Peter Dimov
128bdf9db2
Minor usage section changes
2021-11-11 04:33:06 +02:00
Peter Dimov
0e84860604
Add another usage subsection
2021-11-11 04:09:49 +02:00
Peter Dimov
83a306f3bf
Update introduction
2021-11-10 20:36:57 +02:00
Peter Dimov
7dce2e3f42
Change 'wrapping' to 'adapting'
2021-11-10 18:52:41 +02:00
Peter Dimov
292c6825c6
Add another usage subsection
2021-11-09 22:05:45 +02:00
Peter Dimov
0d90d3d883
Add myimg_category implementation to usage example
2021-11-08 20:50:41 +02:00
Peter Dimov
81fec2b171
Add another usage subsection
2021-11-07 23:45:25 +02:00
Peter Dimov
4e15afe5be
Add error handling and programming categories to libraries.json
2021-11-07 20:32:42 +02:00
Peter Dimov
8d1a866920
Add a usage subsection on wrapping zlib errors
2021-11-05 22:05:23 +02:00
Peter Dimov
09466c85b4
Add another usage subsection
2021-11-05 20:38:03 +02:00
Peter Dimov
baef8e50ea
Rename 'Usage Examples' to 'Usage', add another subsection
2021-11-05 16:48:33 +02:00
Peter Dimov
5034f11a3a
Add usage examples
boost-1.78.0.beta1
2021-11-02 03:12:26 +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
bfebaf53d7
Add static_assert to cmake_subdir_test
2021-10-28 23:48:03 +03:00
Peter Dimov
8338e80295
Enable syntax hightlighting
2021-10-28 23:17:20 +03:00
Peter Dimov
2b23aaab16
Add msvc-14.3 to ci.yml
2021-10-28 23:16:53 +03:00
Peter Dimov
7933300b6f
Disable test on g++ 4.x because no std::io_errc
2021-10-11 03:30:50 +03: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
420a262733
Fix warnings_test.cpp
2021-10-02 17:25:31 +03:00
Peter Dimov
e15bccc09b
Fix cmake_install_test/main.cpp
2021-10-02 16:57:38 +03:00
Peter Dimov
bb775c071a
Update system_error::what to use error_code::what
2021-10-02 15:00:40 +03:00
Peter Dimov
01676ae42f
Update documentation
2021-10-02 14:47:07 +03:00
Peter Dimov
eefcc5dcf6
Add error_code::what
2021-10-02 14:41:27 +03:00
Peter Dimov
f2d3a0decf
Update documentation
2021-10-02 01:39:06 +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