[v3] Add constexpr specifiers to profile/bitset constructors

Submitted by Paolo Carlini on Nov. 7, 2010, 4:09 p.m.

Details

Message ID 4CD6CF3A.4000108@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Nov. 7, 2010, 4:09 p.m.
Hi,

tested x86_64-linux profile-mode, committed.

Paolo.

////////////////////////
2010-11-07  Paolo Carlini  <paolo.carlini@oracle.com>

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

Patch hide | download patch | download mbox

Index: include/profile/bitset
===================================================================
--- include/profile/bitset	(revision 166416)
+++ include/profile/bitset	(working copy)
@@ -95,10 +95,10 @@ 
       };
 
       // 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