I use visual studio 2013. When I write this code
char16_t ch1 = u'q';
visual studio complains with Error: identifier "u" is undefined. I thought VS 2013 should support c++11 standard and u'' identifier as well.
I use visual studio 2013. When I write this code
char16_t ch1 = u'q';
visual studio complains with Error: identifier "u" is undefined. I thought VS 2013 should support c++11 standard and u'' identifier as well.
While Microsoft's Visual C++ 2013 supports many C++11 features, the support still isn't complete.
As for string literals, they support only two (or three; depending on how you count) string literal prefixes so far:
L"Hello \"World\""
using L
to mark wide character strings (i.e. wchar_t
rather than char
).R"(Hello "World")"
using R
to mark raw strings with special user defined delimiters (new to C++11).LR"(Hello "World")"
using a combination of both.