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

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -

shared memory - gstreamer shmsrc and shmsink with h264 data -

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