Conversation
|
this is probably okay but please clean up the commits |
|
A minor error has been fixed:
`error: no template named 'expected' in namespace 'std'
46 | std::expected<T, bad_safe_int> expected() const {
| ~~~~~^
../../apps/mlibc/subprojects/frigg/include/frg/safe_int.hpp:51:7: error: no template named 'expected' in namespace 'std'
51 | std::expected<T, E> or_unexpected(E error) const {
| ~~~~~^
../../apps/mlibc/subprojects/frigg/include/frg/safe_int.hpp:53:16: error: no member named 'unexpected' in namespace 'std'
53 | return std::unexpected{error};
| ~~~~~^
../../apps/mlibc/subprojects/frigg/include/frg/safe_int.hpp:53:26: error: expected ';' after return statement
53 | return std::unexpected{error};
| ^
| ;
4 errors generated.`
Add a new test file
Delete Test
Done |
|
Checking FTMs is fine, but why would std:: expected be missing in the first place if the header inclusion doesn't fail? Is it some old C++ standard being used? |
Well, no old version of C++ is being used (besides, I tested it with C++23 and C++26) And the same error persists; I really don't get it, even including the file, it still doesn't seem exist |
clang (at least up to some version) doesn't implement a requisite feature of concepts (IIRC) so the header exists but is effectively empty. https://gcc.gnu.org/cgit/gcc/tree/libstdc++-v3/include/bits/version.def#n1598 |
Minor error fixed.
Log:
I think it's all sorted out; CI compiled everything without errors at least.