I am trying to write a class that should require the concept Container with gcc 6.
What I tried is:
class MyContainer { ... };
static_assert(std::Container<MyContainer>);
But I can't manage to make it compile.
I am trying to write a class that should require the concept Container with gcc 6.
What I tried is:
class MyContainer { ... };
static_assert(std::Container<MyContainer>);
But I can't manage to make it compile.
Concepts TS does not come with any actual concepts in it. It's just the language feature. The "concepts" used by the C++ standard are not implemented by Concepts TS.
So this std::Container
you're trying to access doesn't exist. You can read the requirements the standard uses and create one.