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

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -