2
0
mirror of https://github.com/boostorg/outcome.git synced 2026-01-21 17:12:15 +00:00

50 Commits

Author SHA1 Message Date
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
b169c8205b Merging commit ned14/outcome@db728f98d6:
upd
2026-01-08 18:50:09 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
e7805af0f1 Merging commit ned14/outcome@9b5743a715:
Update changelog and Rust recipe.
2025-05-01 23:28:01 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
03cadce530 Merging commit ned14/outcome@571f9c930e:
upd
2024-03-13 20:50:49 +00:00
Niall Douglas
8eefcf3780 Merging commit ned14/outcome@0bedf671c0:
Merge pull request #283 from ned14/wip-fix-addressof

Use a preprocessor macro to control the use of std::addressof(), fixing #282.
2023-07-15 22:16:38 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
cc6088dae7 Use a preprocessor macro to control the use of std::addressof(),
fixing #282.
2023-07-15 11:44:03 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
474d09a402 Merging commit ned14/outcome@b274e869c2:
Merge branch 'use-addressof' of https://github.com/gix/outcome into develop
2023-06-28 21:46:36 +00:00
Nico Rieck
2c8330485a Use std::addressof instead of operator& 2023-06-02 17:20:00 +02:00
Henrik Gaßmann
02b07b0a93 Merging commit ned14/outcome@093f364aa6:
Merge pull request #274 from amerry/appleclang-warning-fix

Properly guard the usage of [[likely]] (especially for AppleClang 12)
2023-01-26 06:59:42 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
64406c50fc Merging commit ned14/outcome@af7e4879b9:
Complete first attempt at review of error handling frameworks for the docs.
2022-01-04 12:41:50 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
7f853d7bab Merging commit ned14/outcome@5b2ad540ae:
upd
2021-02-02 10:16:37 +00:00
Jenkins nedprod CI
352923f893 Merging commit ned14/outcome@ca01ab98f7:
Merged from develop branch as CDash reports all green
2020-06-15 15:35:41 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
96c8734079 Disable failing tests on GCCs before 9 2020-06-04 10:22:57 +01:00
Jenkins nedprod CI
6a0adc9fd1 Merging commit ned14/outcome@4b535a3ce3:
Merged from develop branch as CDash reports all green
2020-01-09 19:49:21 +00:00
Jenkins nedprod CI
bbd4e31869 Merging commit ned14/outcome@6d45806413:
Merged from develop branch as CDash reports all green
2019-10-22 13:42:33 +00:00
Jenkins nedprod CI
be17de5379 Merging commit ned14/outcome@aa81442811:
Merged from develop branch as CDash reports all green
2019-09-25 15:15:54 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
20917c3cb0 Outcome is now make install-able, and cmake find_package() can find it. Note that
you must separately install and `find_package()` Outcome's dependency, quickcpplib, else
`find_package()` of Outcome will fail.
2019-09-24 17:42:51 +01:00
Jenkins nedprod CI
4598879ed9 Merging commit ned14/outcome@5e9c7aa1d0:
Merged from develop branch as CDash reports all green
2019-08-13 14:56:36 +00:00
Jenkins nedprod CI
c912c61aba Merging commit ned14/outcome@ca5995f40f:
Merged from develop branch as CDash reports all green
2019-06-19 09:23:22 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
81bb27b500 Issue #184 Refresh licence boilerplate on the top of all source files using license restamping script. 2019-06-18 10:54:55 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
da9f24be05 Merge branch 'orig-master' (early part) 2019-01-10 12:17:16 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
aefc790a53 Issue #150 **BREAKING CHANGE** result<T, E>, boost_result<T, E> and std_result<T, E>
no longer implement hard UB on fetching a value from a valueless instance if `E` is
a UDT, they now fail to compile with a useful error message. If you wish hard UB,
use `unchecked<T, E>`, `boost_unchecked<T, E>` or `std_unchecked<T, E>` instead.
2018-09-14 18:08:22 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
6237ce4930 Reworked how the failure observer implementation is discovered so it can cope with dual use of Boost and STD types.
Renamed ADL discovered customisation point `throw_as_system_error_with_payload()` to `outcome_throw_as_system_error_with_payload()`.
2018-04-03 20:13:49 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com
e1a31b35ae Finally got round to fixing issue #67 where noexcept tests fail on OS X for some unknown reason.
Turns out that the unknown reason is that libc++ has a really braindead implementation of
std::make_exception_ptr :(
2018-03-27 09:45:24 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
7df4e24cf1 Fix generation of double underscored temporary variables in OUTCOME_UNIQUE_NAME, fixing issue #120. 2018-03-14 09:12:42 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
9ec5e29123 Reworked outcome into basic_outcome etc. I think that's issue #110 closed, yay! 2018-03-13 21:38:50 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
08e3e2899a Finished breaking result into basic_result and std_result (issue #110). Include time has *dramatically* improved, including libstdc++ headers, basic_result.hpp parses in 1.17 secs vs 4.36 secs for std_result.hpp! Still need to convert outcome over, but getting close to closing this issue. 2018-03-12 20:52:47 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
4ee19b706c Fix issue #71 2017-11-18 13:17:35 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
dbeaed2068 Restored the old converting constructors 2017-11-11 12:35:13 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
c542429b09 Implement construction from anything matching the ValueOrError concept 2017-11-10 22:41:47 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
4a07a87ece All unit tests now passing with refactored library 2017-10-28 01:57:53 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
a5599e5112 Ok, I think result is now fully ported over to the new payload capable design. Now just need to purge outcome of payload support. 2017-10-27 01:20:01 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
63553475b1 wip in getting result to throw with payload. 2017-10-26 03:44:58 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
f3730a95dc Restored testing of Outcome with C++ exceptions and RTTI disabled. Fixed minor build regressions when C++ exceptions are disabled. 2017-10-17 23:20:53 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
bedf76acbb Fix test regressions 2017-10-17 03:00:12 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
6db1f3501a Finished fixing up the reference API docs for OUTCOME.
Broke out the parameter requirements into a template bool and generalised across result and outcome.

Purged the last of the status test code from the test suite.

Tried getting template deduced success/failure working, but also blows up on clang :(
2017-10-05 02:40:10 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
d86cfe3b94 Added docs for C11 macro API 2017-10-03 23:57:45 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
fb6e92d515 Broke result.hpp out into many separate files for easier compartmentalisation.
Stripped the status support from result, added unchecked<T, E> typedef
2017-10-02 01:22:17 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
7153efbe6c Lots of small fixes to make a fully working scripted Boost conversion. 2017-09-28 22:32:27 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
04638284bf expected_pass was actually quite broken, fixed. 2017-09-28 01:02:20 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
7d8ee1bbc0 Fix breakage from previous commit. 2017-09-28 00:40:15 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
89dc614719 Changed how quickcpplib is found by the build system 2017-08-16 22:25:45 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
5685c839c2 Fix failing test. 2017-08-05 17:47:14 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
685ba575d7 Added error_is_errno status flag used to indicate when error code can be treated as errno.
outcome's comparison functions were completely wrong, fixed.

outcome::result now matches WG21 reference result in behaviours.
2017-08-05 16:49:38 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
2dadef712d Added WG21 reference implementation of result 2017-08-05 02:05:23 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
5d76329493 Quite a few regressions had occurred, these are now all fixed. Also back to being clang-tidy clean. 2017-07-27 23:59:54 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
832e98a684 Fix bug where default construction of T was not occurring when it should. 2017-07-20 12:17:33 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
837a96773a Implement issue #56 (Consider multi-argument converting parameters rather than single argument) for outcome as well. 2017-07-11 23:05:30 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
39c0e7c7bd Implement issue #56 (Consider multi-argument converting parameters rather than single argument) for result. 2017-07-11 22:04:49 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
7c8be75127 Merged the prototype test suite into the v1 ported test suite.
constexpr unit tests are now working.
2017-07-05 01:08:35 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
156a315631 Added compile-fail test support to quickcpplib, and thence a few compile fail tests. 2017-07-04 23:23:01 +01:00