This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error: unable to find numeric literal operator âoperator"" fâ


On 02/13/2014 06:22 PM, Jonathan Wakely wrote:
On 13 February 2014 03:23, Florian Weimer wrote:

I think the ""f operator has not been implemented in C++1y mode, either
because it's not actually part of the standard or no one has found the time
to implement it yet.

f is not a user-defined literal operator, it's a core language feature
present in C and C++, but not valid on integer-literals such as 42.

I think the expectation here is that C++14 will provide a language-defined literal operator that will make this legal. I don't if this expectation is warranted, not having consulted the standard.

--
Florian Weimer / Red Hat Product Security Team


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]