aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely.gcc@gmail.com>2013-05-18 23:11:48 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2013-05-19 00:11:48 +0100
commitf891e5d1965935e12d500c86df44f1e30b493137 (patch)
tree03d2d45177496af130cabec5c190cef3f422ae48 /libstdc++-v3/src
parentf92126ba396890f7ae874efee40d8413bf826090 (diff)
downloadgcc-f891e5d1965935e12d500c86df44f1e30b493137.zip
gcc-f891e5d1965935e12d500c86df44f1e30b493137.tar.gz
gcc-f891e5d1965935e12d500c86df44f1e30b493137.tar.bz2
system_error (error_category::error_category()): LWG 2145: Declare public and constexpr.
* include/std/system_error (error_category::error_category()): LWG 2145: Declare public and constexpr. * src/c++11/system_error.cc (error_category::error_category()): Move definition to ... * src/c++11/compatibility-c++0x.cc: Here. From-SVN: r199071
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/c++11/compatibility-c++0x.cc4
-rw-r--r--libstdc++-v3/src/c++11/system_error.cc2
2 files changed, 4 insertions, 2 deletions
diff --git a/libstdc++-v3/src/c++11/compatibility-c++0x.cc b/libstdc++-v3/src/c++11/compatibility-c++0x.cc
index fc84a5e..64a4a6c 100644
--- a/libstdc++-v3/src/c++11/compatibility-c++0x.cc
+++ b/libstdc++-v3/src/c++11/compatibility-c++0x.cc
@@ -119,6 +119,10 @@ namespace std _GLIBCXX_VISIBILITY(default)
};
constexpr bool system_clock::is_monotonic;
} // namespace chrono
+
+ // gcc-4.9.0
+ // LWG 2145 changes this constructor to constexpr i.e. inline
+ error_category::error_category() noexcept = default;
}
#endif
diff --git a/libstdc++-v3/src/c++11/system_error.cc b/libstdc++-v3/src/c++11/system_error.cc
index 453c687..65dcef3 100644
--- a/libstdc++-v3/src/c++11/system_error.cc
+++ b/libstdc++-v3/src/c++11/system_error.cc
@@ -70,8 +70,6 @@ namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
- error_category::error_category() noexcept = default;
-
error_category::~error_category() noexcept = default;
const error_category&