meta icon indicating copy to clipboard operation
meta copied to clipboard

clang 10.0 compiler error

Open gabyx opened this issue 6 years ago • 2 comments

I get a compile error with clang 10.0:

meta/meta_fwd.hpp:286:20: error: expected concept name with optional arguments
[build]         { T{} } -> typename T::value_type;
[build]                    ^

Whats the fix?

gabyx avatar Apr 15 '20 15:04 gabyx

I am experiencing the same error on GCC 11 with -std=c++20.

b1ackviking avatar Aug 31 '21 10:08 b1ackviking

Ah, should be something like { T{} } -> convertible_to<typename T::value_type>.

The concepts language feature changed between the Concepts TS and C++20.

ericniebler avatar Aug 31 '21 15:08 ericniebler