Quantcast
Channel: C++ concept with friend-like access - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by uh oh somebody needs a pupper for C++ concept with friend-like access

No. Concepts explicitly are not allowed to be friends. n4377 7.1.7/2 Every concept definition is implicitly defined to be a constexpr declaration (7.1.5). A concept definition shall not be declared...

View Article



C++ concept with friend-like access

Is it possible to make this code work as I'd like? I.e. to allow the concept to have access to a private member funcion?template <typename T>concept bool Writeable() { return requires (T...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images