Skip to content

Commit 6e37adc

Browse files
committed
Minor fix to match C implementation semantics
1 parent 76aa23f commit 6e37adc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ You can find an example of use
2525
Experimental.Outcome works great with C++ exceptions globally disabled, and includes
2626
only a very minimal set of C++ headers.
2727

28+
If you want a 100% pure C edition with multiple language bindings, the reference
29+
implementation for WG14 the C programming language is available at https://github.com/ned14/wg14_result.
30+
This C++ implementation is 100% ABI compatible with the pure C edition and objects
31+
can be freely reinterpet casted between both implementations.
32+
2833
## Features:
2934

3035
- Portable to any C++ 11 compiler. These are known to work:

include/status-code/status_code_domain.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ class status_code_domain
261261
SYSTEM_ERROR2_FATAL(buffer);
262262
}
263263
}
264+
o._begin = nullptr;
265+
o._end = nullptr;
266+
o._state[0] = o._state[1] = o._state[2] = nullptr;
267+
*(_thunk_spec *) (&o._thunk) = nullptr;
264268
}
265269
//! Copy assignment
266270
SYSTEM_ERROR2_CONSTEXPR20 string_ref &operator=(const string_ref &o)

0 commit comments

Comments
 (0)