aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2010-11-07 16:08:09 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2010-11-07 16:08:09 +0000
commit52b8df0139b16b9521ffef821cc1d76675470c33 (patch)
tree730bc246d86a475c40be0290379d00bb9eb0a91f /libstdc++-v3
parent17e3f4aa17624af245bae5408b6e5c1fdf90c9ec (diff)
downloadgcc-52b8df0139b16b9521ffef821cc1d76675470c33.zip
gcc-52b8df0139b16b9521ffef821cc1d76675470c33.tar.gz
gcc-52b8df0139b16b9521ffef821cc1d76675470c33.tar.bz2
bitset (bitset<>::bitset(), [...]): Add constexpr specifier.
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/profile/bitset4
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index fa9a9bb..1bc5dfa 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/include/profile/bitset b/libstdc++-v3/include/profile/bitset
index b8b1e65..d7ecf81 100644
--- a/libstdc++-v3/include/profile/bitset
+++ b/libstdc++-v3/include/profile/bitset
@@ -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