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

Popular posts from this blog

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -