2
0
mirror of https://github.com/boostorg/outcome.git synced 2026-01-21 05:02:14 +00:00

542 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)
9b343380e1 Merging commit ned14/outcome@47e5f5f6e9:
Merge branch 'wg14_result' into develop
2025-12-16 21:14:56 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
168a4c3064 Port Outcome over to work with ABI refactored status_code. 2025-12-04 19:28:02 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
19d8353ddc Add WG14 reference C reimplementation of Outcome. 2025-10-29 18:35:59 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
44ba89f8e5 Merging commit ned14/outcome@744da6b753:
More cmake 4.0 improvements.
2025-05-21 12:30:18 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
744da6b753 More cmake 4.0 improvements. 2025-05-21 13:10:20 +01: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)
72ff7b1b25 Fix annoying warnings on MSVC latest.
Fix link test failure on MSVC.
2024-11-21 16:49:34 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
f523c52a41 Merging commit ned14/outcome@72ff7b1b25:
Fix annoying warnings on MSVC latest.

Fix link test failure on MSVC.
2024-11-21 16:13:46 +00:00
Niall Douglas
d0ff4c18d6 Merging commit ned14/outcome@21ffac49b2:
Merge pull request #306 from ned14/experimental-c-result-link-tests

Add C Result link test based on Ken's description of link failure.
2024-10-08 18:51:35 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
591853fa58 Add C Result link test based on Ken's description of link failure. 2024-10-08 19:00:03 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
f2e32bac00 Merging commit ned14/outcome@a4f6b1b189:
Further changes from https://github.com/boostorg/outcome/pull/7
2024-07-30 06:18:28 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
9bdb65f5a0 Merging commit ned14/outcome@16cbe6776d:
Port https://github.com/boostorg/outcome/pull/7 to standalone Outcome.
2024-07-26 15:04:33 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
1e0a9ede31 Merging commit ned14/outcome@10eb45ca7d:
- Outcome.Experimental has had C representation support since the beginning, however it had
been mainly intended that C++ would originate Results, they would pass through C, and back
into C++. It hadn't really been expected that C would want to do much with Results other than
inspect them for happy or sad path.

 It turns out there is more demand than expected for a more functional Result from within C,
so this release adds the power to create Results in success and two types of failure, semantic
comparison of Results, and printing of Result messages. You can also wrap a C enum into a
quick status code from enum, allowing easy custom C error coding from 100% within C.

 [The documentation for the C support]({{% relref "../experimental/c-api" %}}) has been updated
to reflect the new facilities.
2024-07-16 21:03:04 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
10eb45ca7d - Outcome.Experimental has had C representation support since the beginning, however it had
been mainly intended that C++ would originate Results, they would pass through C, and back
into C++. It hadn't really been expected that C would want to do much with Results other than
inspect them for happy or sad path.

 It turns out there is more demand than expected for a more functional Result from within C,
so this release adds the power to create Results in success and two types of failure, semantic
comparison of Results, and printing of Result messages. You can also wrap a C enum into a
quick status code from enum, allowing easy custom C error coding from 100% within C.

 [The documentation for the C support]({{% relref "../experimental/c-api" %}}) has been updated
to reflect the new facilities.
2024-07-16 21:39:48 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
b0e3190a5a Merging commit ned14/outcome@5bcd0f32f2:
Fix issue #299 GCC 14 warns on use of `_`.
2024-06-21 12:13:31 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
5bcd0f32f2 Fix issue #299 GCC 14 warns on use of _. 2024-06-21 12:50:49 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
fd1282d45a Merging commit ned14/outcome@f5a45b6909:
Hopefully fix issue #300 caused by MSVC changing what diagnostic
it prints.
2024-06-14 13:15:25 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
f5a45b6909 Hopefully fix issue #300 caused by MSVC changing what diagnostic
it prints.
2024-06-14 13:51:06 +01: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 (s [underscore] sourceforge {at} nedprod [dot] com)
84577bff26 Merging commit ned14/outcome@d4d196619d:
Fixes #293
- Some users wished that Outcome would be clean with `-Wpedantic`, this is now turned on for
the test suite.

Fixes #294
- All use of `assert()` has been replaced with `OUTCOME_ASSERT`, which can be user overridden
at compile time.

Fixes #295
- In git commit 12b14e1533 (Aug 11 2022) status code had its
paths changed due to its headers not previously having the right path convention. It was not
realised at the time that in Boost.Outcome this resulted in
`<boost/outcome/experimental/status-code/status-code/headers.hpp>` which is not desirable.
This has now been remedied to remove the double `status-code`, which will obviously break
any Boost.Outcome code which relies on the double `status-code`. Standalone Outcome is unaffected.
2023-12-16 21:13:43 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
d4d196619d Fixes #293
- Some users wished that Outcome would be clean with `-Wpedantic`, this is now turned on for
the test suite.

Fixes #294
- All use of `assert()` has been replaced with `OUTCOME_ASSERT`, which can be user overridden
at compile time.

Fixes #295
- In git commit 12b14e1533 (Aug 11 2022) status code had its
paths changed due to its headers not previously having the right path convention. It was not
realised at the time that in Boost.Outcome this resulted in
`<boost/outcome/experimental/status-code/status-code/headers.hpp>` which is not desirable.
This has now been remedied to remove the double `status-code`, which will obviously break
any Boost.Outcome code which relies on the double `status-code`. Standalone Outcome is unaffected.
2023-12-16 20:51:26 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
ef1b519850 Merging commit ned14/outcome@f7892ac2e8:
A Result or Outcome with `void` value type and move-only non-value type was only usable in
const use cases, due to the lack of provision of non-const member functions in relevant observers
injection layers for the `void` specialisation. The missing non-const member functions have now
been added. Fixes #291.
2023-11-17 09:20:02 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
f7892ac2e8 A Result or Outcome with void value type and move-only non-value type was only usable in
const use cases, due to the lack of provision of non-const member functions in relevant observers
injection layers for the `void` specialisation. The missing non-const member functions have now
been added. Fixes #291.
2023-11-17 08:58:24 +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
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
9aa84a322a Merging commit ned14/outcome@a74e523195:
Try to work around stupid clang-cl parse bug.
2023-04-26 16:53:35 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
a74e523195 Try to work around stupid clang-cl parse bug. 2023-04-26 17:16:30 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
03f7ec7199 Merging commit ned14/outcome@5e3a8003e3:
Fix last commit
2023-04-26 13:59:47 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
5e3a8003e3 Fix last commit 2023-04-26 14:28:19 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
b6239dd336 Merging commit ned14/outcome@8108b6cbf8:
Fix Boost.Outcome breakage on MSVC in C++ 14.
2023-04-26 09:29:39 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
8108b6cbf8 Fix Boost.Outcome breakage on MSVC in C++ 14. 2023-04-26 10:03:59 +01: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)
4875357541 Merging commit ned14/outcome@66ebdd4e86:
Stop Boost regression tests complaining about no test tree.
2022-11-18 18:44:33 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
66ebdd4e86 Stop Boost regression tests complaining about no test tree. 2022-11-18 18:15:09 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
3d6ad998b7 Merging commit ned14/outcome@2d2c444e36:
Merge branch 'develop'
2022-04-16 12:05:02 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
364077e301 Merging commit ned14/outcome@33c97cdf63:
Fix issue #261 where the fix for issue #259 did not account for void types.
2022-04-16 12:04:59 +00:00
Niall Douglas
94575dc7ff Merging commit ned14/outcome@eeda50853d:
Merge pull request #260 from ned14/issue0259fix

Fix issue #259 enabling of move assignable is not calculated correctly.
2022-04-16 12:04:55 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
6ee1a897d2 Merging commit ned14/outcome@3bdb7949f0:
Merge branch 'issue0261' into develop
2022-04-06 09:51:48 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
3bdb7949f0 Merge branch 'issue0261' into develop 2022-04-05 22:53:31 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
33c97cdf63 Fix issue #261 where the fix for issue #259 did not account for void types. 2022-04-05 22:43:52 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
eb4a3ea9cd Merging commit ned14/outcome@cfdb4fe11f:
Merge branch 'issue0259fix' into develop
2022-04-01 08:36:39 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
267009ab6b Merging commit ned14/outcome@f27104952c:
Merge branch 'issue0259fix' into develop
2022-04-01 08:36:37 +00:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
cfdb4fe11f Merge branch 'issue0259fix' into develop 2022-04-01 09:09:20 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
1c0a83e5ed Fix last commit on GCC, which for some reason disabled the implicit constructors. 2022-04-01 09:07:34 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
f27104952c Merge branch 'issue0259fix' into develop 2022-03-30 13:36:59 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
95fe32c86c Fix issue #259 enabling of move assignable is not calculated correctly. 2022-03-30 13:01:11 +01:00
Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)
0090259cd0 Merging commit ned14/outcome@71a8796b1d:
Fix last commit not building if exceptions were disabled.
2022-03-18 15:11:00 +00:00