]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2013-10-22 Edward Smith-Rowland <3dw4rd@verizon.net>
authoremsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Oct 2013 00:12:36 +0000 (00:12 +0000)
committeremsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Oct 2013 00:12:36 +0000 (00:12 +0000)
* 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

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/std/chrono

index f3f7c4b271acbad85fad2a98ae9fe94e6e05be95..b287bf1a7cb64bb6fe509c639df19121943944ec 100644 (file)
@@ -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,
index db01eb7dace365cc3c9a9feddfe4a31b6a234121..2d3edf80103103ec00e5215347822c162b99540f 100644 (file)
@@ -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
 
index d5ef984279d7dfbd9d8e867742b54d287030d34a..deeb460433d92b22d488144acfda3a4fd95491d4 100644 (file)
@@ -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,