@@ -65,11 +65,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
/// error_category
class error_category
{
- protected:
+ public:
+#ifdef _GLIBCXX_COMPATIBILITY_CXX0X
error_category() noexcept;
+#else
+ constexpr error_category() noexcept = default;
+#endif
- public:
- virtual ~error_category() noexcept;
+ virtual ~error_category();
error_category(const error_category&) = delete;
error_category& operator=(const error_category&) = delete;
@@ -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
@@ -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&