bitset (bitset<>::bitset(), [...]): Add constexpr specifier.
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 7 Nov 2010 16:08:09 +0000 (16:08 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 7 Nov 2010 16:08:09 +0000 (16:08 +0000)
2010-11-07  Paolo Carlini  <paolo.carlini@oracle.com>

* include/profile/bitset (bitset<>::bitset(), bitset<>::
bitset(unsigned long long)): Add constexpr specifier.

From-SVN: r166417

libstdc++-v3/ChangeLog
libstdc++-v3/include/profile/bitset

index fa9a9bb..1bc5dfa 100644 (file)
@@ -1,5 +1,10 @@
 2010-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
 
+       * include/profile/bitset (bitset<>::bitset(), bitset<>::
+       bitset(unsigned long long)): Add constexpr specifier.
+
+2010-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
+
        * include/debug/bitset: Do not derive from _Safe_sequence_base in
        C++0x mode, otherwise std::bitset isn't a literal type anymore;
        adjust everywhere.
index b8b1e65..d7ecf81 100644 (file)
@@ -95,10 +95,10 @@ namespace __profile
       };
 
       // 23.3.5.1 constructors:
-      bitset() : _Base() { }
+      _GLIBCXX_CONSTEXPR bitset() : _Base() { }
 
 #ifdef __GXX_EXPERIMENTAL_CXX0X__
-      bitset(unsigned long long __val)
+      constexpr bitset(unsigned long long __val)
 #else
       bitset(unsigned long __val)
 #endif