Using defines I am able to declare a wide string that uses the value of regular string as follows:
#define MY_STRING "my value"
#define MY_WIDE_STRING L"" MY_STRING
How can I achieve the same but with member variables and a initialization list - i.e. something like this...
class MyClass
{
private:
const std::string MY_STRING
const std::wstring MY_WIDE_STRING
public:
MyClass():MY_STRING("my value"), MY_WIDE_STRING(L"" MY_STRING)
{
}
Thanks