diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2010-11-23 23:47:44 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2010-11-23 23:47:44 +0000 |
commit | 85db9dcc30546c0f751633751e64ba7ab5a89791 (patch) | |
tree | b9e1c59ac246a73ee7d393b41db479a7f10ffdf6 /libstdc++-v3/src | |
parent | 9fdca9e332d60510f4402a201d699942d9884b92 (diff) | |
download | gcc-85db9dcc30546c0f751633751e64ba7ab5a89791.zip gcc-85db9dcc30546c0f751633751e64ba7ab5a89791.tar.gz gcc-85db9dcc30546c0f751633751e64ba7ab5a89791.tar.bz2 |
chrono: Constexpr markup for is_monotonic.
2010-11-23 Benjamin Kosnik <bkoz@redhat.com>
* include/std/chrono: Constexpr markup for is_monotonic.
* src/chrono.cc: Same.
* testsuite/20_util/clocks/1.cc: Move...
* testsuite/20_util/system_clock/1.cc: ...here.
* testsuite/20_util/system_clock/constexpr_data.cc
* testsuite/20_util/monotonic_clock/constexpr_data.cc
* include/std/complex: Mark primary template constexpr.
* testsuite/26_numerics/complex/cons/constexpr_primary.cc: Add.
* testsuite/26_numerics/complex/complex_value.cc: Move...
* testsuite/26_numerics/complex/dr387.cc: Move...
* testsuite/26_numerics/complex/value_operations/1.cc: ... here.
* testsuite/26_numerics/complex/value_operations/dr387.cc: ...here.
* testsuite/26_numerics/complex/value_operations/constexpr.cc: New.
2010-11-23 Benjamin Kosnik <bkoz@redhat.com>
Jason Merrill <jason@redhat.com>
* testsuite/lib/libstdc++.exp: Use scanasm.
* testsuite/util/testsuite_common_types.h
(constexpr_default_constructible): Add support for non-literal types.
(constexpr_single_value_constructible): Same.
* testsuite/20_util/enable_shared_from_this/cons/constexpr.cc:
Remove xfail.
* testsuite/20_util/shared_ptr/cons/constexpr.cc: Add.
* testsuite/20_util/unique_ptr/cons/constexpr.cc: Add.
* testsuite/20_util/weak_ptr/cons/constexpr.cc: Add.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust line number.
2010-11-23 Benjamin Kosnik <bkoz@redhat.com>
Jonathan Wakely <jwakely.gcc@gmail.com>
* include/std/future (shared_future): Default ctor constexpr.
(future): Same.
* testsuite/30_threads/shared_future/cons/constexpr.cc: New.
* testsuite/30_threads/future/cons/constexpr.cc: New.
Co-Authored-By: Jason Merrill <jason@redhat.com>
Co-Authored-By: Jonathan Wakely <jwakely.gcc@gmail.com>
From-SVN: r167099
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r-- | libstdc++-v3/src/chrono.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/src/chrono.cc b/libstdc++-v3/src/chrono.cc index 699a10a..4dcd74b 100644 --- a/libstdc++-v3/src/chrono.cc +++ b/libstdc++-v3/src/chrono.cc @@ -37,7 +37,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) namespace chrono { - const bool system_clock::is_monotonic; + constexpr bool system_clock::is_monotonic; system_clock::time_point system_clock::now() throw () @@ -61,7 +61,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) } #ifdef _GLIBCXX_USE_CLOCK_MONOTONIC - const bool monotonic_clock::is_monotonic; + constexpr bool monotonic_clock::is_monotonic; monotonic_clock::time_point monotonic_clock::now() |