I have a class that needs to concatenate two const char* strings during construction, and even use the result (concatenated string) later on in the initialization list.
const char* SUFFIX = "suffix";
class widget {
public:
    widget(const char* prefix) : key(???), cls(key) { };
private:
    const char* key;
    const important_class cls;
}
widget("prefix_"); // key should be prefix_suffix
There is a global (in widget's cpp) const char* suffix that I want to append to user supplied prefix.
How to do it?
BTW. I've heard about string. If I could use string I wouldn't ask here, about const char*
 
     
     
     
     
     
     
     
    