I recently watched GoingNative2012 about, of course, C++11.
In Bjarne Stroustrup section, I found out there was an interesting operator function, which was as belows.
constexpr Value<Second> operator""s(long double d)
{
return Value<Second>(d);
}
Well, beside constexpr that looks like a new keyword in C++11,
I've never known "" is overload-able?
Is this one of the new features in C++ although I failed to test it using VS 2010?
Thanks in advance.
It is a new C++11 core language feature: user defined litterals
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With