Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
gcc 6でコンテナの概念を必要とするクラスを作成しようとしています。
私が試したのは:
class MyContainer { ... }; static_assert(std::Container<MyContainer>);
しかし、私はそれをコンパイルすることができません。
コンセプト TS には実際のコンセプトは含まれていません。それは単なる言語機能です。C++ 標準で使用される「概念」は、Concepts TSでは実装されていません。
したがって、std::Containerアクセスしようとしているこれは存在しません。標準で使用されている要件を読んで作成できます。
std::Container