C ++ 11 Custom Literals with Microsoft Visual Studio 2013

As far as I know, UDLs are included and supported in MVS 2013.

I tried to do things like:

    myclass operator"" _suffix();
    int     operator"" _suffix();

Both of the above lines give errors in "", saying that it expects an operator. I assume that something is wrong with the project settings, as the code should work, and UDL is supported by MVS13.

What could be the problem and how can I solve it?

+4
source share
1 answer

Custom literals are not supported by MSVC 2013 or below. However, they are supported in MSVC "14" CTP and will be part of the 2015 release version of MCVC.

: ++ 11 MSVC VS 14 CTP

+5

Source: https://habr.com/ru/post/1537434/


All Articles