expected-lite icon indicating copy to clipboard operation
expected-lite copied to clipboard

expected lite - Expected objects in C++11 and later in a single-file header-only library

Results 17 expected-lite issues
Sort by recently updated
recently updated
newest added

Shouldn't the `__cplusplus value` for C++20 be `202002L` as per https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=msvc-170 https://github.com/martinmoene/expected-lite/blob/b33d22b294865cdb94e557d779a25ff2096ba618/include/nonstd/expected.hpp#L103

The following code breaks when it is compiled with a C++20 capable compiler without using a C++20 capable standard library: ```cpp #if nsel_CPP20_OR_GREATER using std::remove_cvref; #else ``` Please don't assume...

Move-constructor `expected( U && value` of _expected_ calls `contained.construct_value( std::forward( value ) );` which leads to `new(&m_value) value_type(std::forward(args)...);` which degrades to calling `new(&m_value) bool(std::forward(args)...);` in the case of E=bool. This...

For some special cases (and reasons) it would be perfect to have version of the nonstd::expected implementation with no exception support (like @TartanLlama version).

Hi, First of all thanks for this great library I can't use nonstd::expected with a non copyable type or a non moveable type can you tell me if this behavior...

As advocated by Niall Douglas in section *2.1 All-wide or all-narrow observers* of [p0762 - Concerns about expected from the Boost.Outcome peer review](http://wg21.link/p0762).

See [expected-dark issue 28](https://github.com/martinmoene/expected-dark/issues/28).

See [expected-dark issue 27](https://github.com/martinmoene/expected-dark/issues/27).

See [expected-dark issue 26](https://github.com/martinmoene/expected-dark/issues/26).