summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-04 05:53:05 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-04 05:53:05 +0000
commitf07666e1203a50ae445025050b7e12311db6bbd0 (patch)
tree71958eff5a01ab8a0f3b6c5a100767f03b50b41f /libstdc++-v3/include
parent290767fbc92c5971e9db1dce9e0f52f3e0b13999 (diff)
downloadgcc-f07666e1203a50ae445025050b7e12311db6bbd0.tar.gz
2010-11-03 Benjamin Kosnik <bkoz@redhat.com>
* include/std/tuple (tuple): Make default constructors constexpr. * testsuite/20_util/tuple/cons/constexpr.cc: Add. * testsuite/18_support/initializer_list/requirements/ constexpr_functions.cc: Add. * testsuite/18_support/initializer_list/constexpr.cc: Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166301 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/std/tuple12
1 files changed, 6 insertions, 6 deletions
diff --git a/libstdc++-v3/include/std/tuple b/libstdc++-v3/include/std/tuple
index 302d0f50895..682712104a2 100644
--- a/libstdc++-v3/include/std/tuple
+++ b/libstdc++-v3/include/std/tuple
@@ -64,7 +64,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
struct _Head_base<_Idx, _Head, true>
: public _Head
{
- _Head_base()
+ constexpr _Head_base()
: _Head() { }
_Head_base(const _Head& __h)
@@ -83,7 +83,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
template<std::size_t _Idx, typename _Head>
struct _Head_base<_Idx, _Head, false>
{
- _Head_base()
+ constexpr _Head_base()
: _M_head_impl() { }
_Head_base(const _Head& __h)
@@ -147,7 +147,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
_Inherited& _M_tail() { return *this; }
const _Inherited& _M_tail() const { return *this; }
- _Tuple_impl()
+ constexpr _Tuple_impl()
: _Inherited(), _Base() { }
explicit
@@ -225,7 +225,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
typedef _Tuple_impl<0, _Elements...> _Inherited;
public:
- _GLIBCXX_CONSTEXPR tuple()
+ constexpr tuple()
: _Inherited() { }
explicit
@@ -310,7 +310,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
typedef _Tuple_impl<0, _T1, _T2> _Inherited;
public:
- tuple()
+ constexpr tuple()
: _Inherited() { }
explicit
@@ -408,7 +408,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
typedef _Tuple_impl<0, _T1> _Inherited;
public:
- tuple()
+ constexpr tuple()
: _Inherited() { }
explicit