ned14 / outcome

Provides very lightweight outcome<T> and result<T> (non-Boost edition)
https://ned14.github.io/outcome
Other
675 stars 62 forks source link

WG21-P1886 errors #275

Closed kassane closed 1 year ago

kassane commented 1 year ago
zig build-exe WG21_P1886 Debug native: error: error(compilation): clang failed with stderr: In file included from /home/kassane/outcome/test/constexprs/WG21_P1886.cpp:24:
/home/kassane/outcome/test/constexprs/../../single-header/outcome-experimental.hpp:10982:52: error: use of undeclared identifier 'erased'
/home/kassane/outcome/test/constexprs/WG21_P1886.cpp:35:44: error: no member named 'is_move_relocating' in namespace 'outcome_v2::trait'
/home/kassane/outcome/test/constexprs/WG21_P1886.cpp:35:93: error: expected '(' for function-style cast or type construction
/home/kassane/outcome/test/constexprs/WG21_P1886.cpp:35:96: error: no member named 'value' in the global namespace

is_move_relocating -> is_move_bitcopyng? https://github.com/ned14/outcome/blob/f3cbe84e366402a65263905c48bed1d44727da5c/single-header/outcome-experimental.hpp#L2005

ned14 commented 1 year ago

Looks like a mismatch of status code edition to Outcome edition.

Updating both to latest will fix things. I'm actually just about to merge develop to master branch right now, coincidentally.