That is not possible since std::basic_string(const char*) is not 'constexpr' in the C++11 standard.