Patchwork [v3] Add constexpr specifiers to profile/bitset constructors

login
register
mail settings
Submitter Paolo Carlini
Date Nov. 7, 2010, 4:09 p.m.
Message ID <4CD6CF3A.4000108@oracle.com>
Download mbox | patch
Permalink /patch/70353/
State New
Headers show

Comments

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

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