5

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

I have tried to do things such as:

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

Both the above lines give errors at "" saying it expected an operator. My guess is that something is wrong with the project settings since the code should work and UDL is supported by MVS13.

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

5
  • 6
    Nope, not supported in VS2013, including the Nov CTP. Commented Apr 21, 2014 at 23:41
  • @Praetorian Therefore I have to install the Nov CTP right? Commented Apr 21, 2014 at 23:45
  • No, you need to let go of the belief that some available version of VS supports UDLs :-). Look at the link I posted, it shows, as stated in my comment, that the CTP doesn't support it either. Commented Apr 21, 2014 at 23:52
  • @Praetorian I just saw that table, then is there any update for VS13 to get the UDLs or do I have to use some other compiler that supports them ? Commented Apr 21, 2014 at 23:55
  • 6
    What part of the table or his previous two comments were unclear? This is not supported in Visual Studio. The end. Commented Apr 21, 2014 at 23:58

1 Answer 1

5

User defined literals are not supported by MSVC 2013 or lower. They are however supported in MSVC "14" CTP and will be part of the eventual MCVC 2015 release.

Sources: C++11 Features in MSVC and VS 14 CTP

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.