prog.cpp: In function 'constexpr std::string appendStringC(std::string)':
prog.cpp:4:23: error: invalid type for parameter 1 of constexpr function 'constexpr std::string appendStringC(std::string)'
constexpr std::string appendStringC(std::string s)
^
In file included from /usr/include/c++/5/string:52:0,
from /usr/include/c++/5/bits/locale_classes.h:40,
from /usr/include/c++/5/bits/ios_base.h:41,
from /usr/include/c++/5/ios:42,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from prog.cpp:1:
/usr/include/c++/5/bits/basic_string.h:2508:11: note: 'std::basic_string<char>' is not literal because:
class basic_string
^
/usr/include/c++/5/bits/basic_string.h:2508:11: note: 'std::basic_string<char>' has a non-trivial destructor
prog.cpp:4:23: error: invalid return type 'std::string {aka std::basic_string<char>}' of constexpr function 'constexpr std::string appendStringC(std::string)'
constexpr std::string appendStringC(std::string s)
^