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 ?

Mike Kinghan
  • 55,740
  • 12
  • 153
  • 182
taigi tanaka
  • 299
  • 1
  • 4
  • 17
  • 6
    Nope, [not supported](http://blogs.msdn.com/b/vcblog/archive/2013/12/02/c-11-14-core-language-features-in-vs-2013-and-the-nov-2013-ctp.aspx) in VS2013, including the Nov CTP. – Praetorian Apr 21 '14 at 23:41
  • @Praetorian Therefore I have to install the Nov CTP right? – taigi tanaka Apr 21 '14 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. – Praetorian Apr 21 '14 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 ? – taigi tanaka Apr 21 '14 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. – Cody Gray - on strike Apr 21 '14 at 23:58

1 Answers1

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

Rado
  • 8,634
  • 7
  • 31
  • 44