From: emsr Date: Wed, 23 Oct 2013 00:12:36 +0000 (+0000) Subject: 2013-10-22 Edward Smith-Rowland <3dw4rd@verizon.net> X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c713de3a4155f58cb776170e2f71be76a61a63ec;p=thirdparty%2Fgcc.git 2013-10-22 Edward Smith-Rowland <3dw4rd@verizon.net> * include/bits/basic_string.h (operator""s): Remove space between quotes and literal identifier. * include/std/chrono (operator""h, operator""min, operator""s, operator""ms, operator""us, operator""ns): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203941 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f3f7c4b271ac..b287bf1a7cb6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2013-10-22 Edward Smith-Rowland <3dw4rd@verizon.net> + + * include/bits/basic_string.h (operator""s): Remove space between quotes + and literal identifier. + * include/std/chrono (operator""h, operator""min, operator""s, + operator""ms, operator""us, operator""ns): Ditto. + 2013-10-22 Ed Smith-Rowland <3dw4rd@verizon.net> Implement N3779 - User-defined Literals for std::complex, diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h index db01eb7dace3..2d3edf801031 100644 --- a/libstdc++-v3/include/bits/basic_string.h +++ b/libstdc++-v3/include/bits/basic_string.h @@ -3130,22 +3130,22 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { inline basic_string - operator"" s(const char* __str, size_t __len) + operator""s(const char* __str, size_t __len) { return basic_string{__str, __len}; } #ifdef _GLIBCXX_USE_WCHAR_T inline basic_string - operator"" s(const wchar_t* __str, size_t __len) + operator""s(const wchar_t* __str, size_t __len) { return basic_string{__str, __len}; } #endif #ifdef _GLIBCXX_USE_C99_STDINT_TR1 inline basic_string - operator"" s(const char16_t* __str, size_t __len) + operator""s(const char16_t* __str, size_t __len) { return basic_string{__str, __len}; } inline basic_string - operator"" s(const char32_t* __str, size_t __len) + operator""s(const char32_t* __str, size_t __len) { return basic_string{__str, __len}; } #endif diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono index d5ef984279d7..deeb460433d9 100644 --- a/libstdc++-v3/include/std/chrono +++ b/libstdc++-v3/include/std/chrono @@ -810,14 +810,14 @@ _GLIBCXX_END_NAMESPACE_VERSION } // __select_type constexpr chrono::duration> - operator"" h(long double __hours) + operator""h(long double __hours) { return chrono::duration>{__hours}; } template constexpr typename __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value, chrono::hours>::type - operator"" h() + operator""h() { return __select_type::_Select_type< __select_int::_Select_int<_Digits...>::value, @@ -825,14 +825,14 @@ _GLIBCXX_END_NAMESPACE_VERSION } constexpr chrono::duration> - operator"" min(long double __mins) + operator""min(long double __mins) { return chrono::duration>{__mins}; } template constexpr typename __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value, chrono::minutes>::type - operator"" min() + operator""min() { return __select_type::_Select_type< __select_int::_Select_int<_Digits...>::value, @@ -840,14 +840,14 @@ _GLIBCXX_END_NAMESPACE_VERSION } constexpr chrono::duration - operator"" s(long double __secs) + operator""s(long double __secs) { return chrono::duration{__secs}; } template constexpr typename __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value, chrono::seconds>::type - operator"" s() + operator""s() { return __select_type::_Select_type< __select_int::_Select_int<_Digits...>::value, @@ -855,14 +855,14 @@ _GLIBCXX_END_NAMESPACE_VERSION } constexpr chrono::duration - operator"" ms(long double __msecs) + operator""ms(long double __msecs) { return chrono::duration{__msecs}; } template constexpr typename __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value, chrono::milliseconds>::type - operator"" ms() + operator""ms() { return __select_type::_Select_type< __select_int::_Select_int<_Digits...>::value, @@ -870,14 +870,14 @@ _GLIBCXX_END_NAMESPACE_VERSION } constexpr chrono::duration - operator"" us(long double __usecs) + operator""us(long double __usecs) { return chrono::duration{__usecs}; } template constexpr typename __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value, chrono::microseconds>::type - operator"" us() + operator""us() { return __select_type::_Select_type< __select_int::_Select_int<_Digits...>::value, @@ -885,14 +885,14 @@ _GLIBCXX_END_NAMESPACE_VERSION } constexpr chrono::duration - operator"" ns(long double __nsecs) + operator""ns(long double __nsecs) { return chrono::duration{__nsecs}; } template constexpr typename __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value, chrono::nanoseconds>::type - operator"" ns() + operator""ns() { return __select_type::_Select_type< __select_int::_Select_int<_Digits...>::value,