ericniebler / meta

A tiny metaprogramming library
Boost Software License 1.0
302 stars 47 forks source link

clang 10.0 compiler error #77

Closed gabyx closed 1 year ago

gabyx commented 4 years ago

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?

b1ackviking commented 3 years ago

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

ericniebler commented 3 years ago

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

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