Commit e9a64492 by Edward Smith-Rowland Committed by Edward Smith-Rowland

basic_string.h (operator""s): Remove space between quotes and literal identifier.

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.

From-SVN: r203941
parent ae5543e6
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,
......
......@@ -3130,22 +3130,22 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
inline basic_string<char>
operator"" s(const char* __str, size_t __len)
operator""s(const char* __str, size_t __len)
{ return basic_string<char>{__str, __len}; }
#ifdef _GLIBCXX_USE_WCHAR_T
inline basic_string<wchar_t>
operator"" s(const wchar_t* __str, size_t __len)
operator""s(const wchar_t* __str, size_t __len)
{ return basic_string<wchar_t>{__str, __len}; }
#endif
#ifdef _GLIBCXX_USE_C99_STDINT_TR1
inline basic_string<char16_t>
operator"" s(const char16_t* __str, size_t __len)
operator""s(const char16_t* __str, size_t __len)
{ return basic_string<char16_t>{__str, __len}; }
inline basic_string<char32_t>
operator"" s(const char32_t* __str, size_t __len)
operator""s(const char32_t* __str, size_t __len)
{ return basic_string<char32_t>{__str, __len}; }
#endif
......
......@@ -810,14 +810,14 @@ _GLIBCXX_END_NAMESPACE_VERSION
} // __select_type
constexpr chrono::duration<long double, ratio<3600,1>>
operator"" h(long double __hours)
operator""h(long double __hours)
{ return chrono::duration<long double, ratio<3600,1>>{__hours}; }
template <char... _Digits>
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<long double, ratio<60,1>>
operator"" min(long double __mins)
operator""min(long double __mins)
{ return chrono::duration<long double, ratio<60,1>>{__mins}; }
template <char... _Digits>
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<long double>
operator"" s(long double __secs)
operator""s(long double __secs)
{ return chrono::duration<long double>{__secs}; }
template <char... _Digits>
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<long double, milli>
operator"" ms(long double __msecs)
operator""ms(long double __msecs)
{ return chrono::duration<long double, milli>{__msecs}; }
template <char... _Digits>
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<long double, micro>
operator"" us(long double __usecs)
operator""us(long double __usecs)
{ return chrono::duration<long double, micro>{__usecs}; }
template <char... _Digits>
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<long double, nano>
operator"" ns(long double __nsecs)
operator""ns(long double __nsecs)
{ return chrono::duration<long double, nano>{__nsecs}; }
template <char... _Digits>
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment