C++ alias template (typedef) with concepts? -
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4553.pdf
gcc6: -fconcepts
template<typename t> concept bool string = requires(t s) { { s.clear() } -> void; // etc. }; void print(const string& message); //void print(str message); // want str = const string& void test() { std::string str; print(str); }
is there way declare str
const string&
?
Comments
Post a Comment