Is there a C++ way of concatenating two constexpr C-strings at compile time? I know how to do it in C with defines, but would really rather have the scope reduction and explicit type system of C++. My primary goal is to have a nice way of concatenating strings at compile time in one line.
Here's an example of what does work in the way I don't want:
#define STR1 "foo"
#define STR2 "blah"
#define CONCATED STR1 STR2
Here's an example of what doesn't work in the way I do want:
constexpr const char *str1 = "foo";
constexpr const char *str2 = "blah";
constexpr const char *concated = str1 str2;