From ae67c86d2b69b1284c3f0e2b0a4b829a190790c8 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 29 Apr 2010 04:58:39 +0000 Subject: [PATCH] Fix a standards-conformance problem where we default-initialize a const object of non-POD class type without a user-declared default constructor [SVN r61672] --- test/error_code_user_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/error_code_user_test.cpp b/test/error_code_user_test.cpp index e5c9e79..be9adaa 100644 --- a/test/error_code_user_test.cpp +++ b/test/error_code_user_test.cpp @@ -108,6 +108,8 @@ namespace boost class lib3_error_category_imp : public boost::system::error_category { public: + lib3_error_category_imp() : boost::system::error_category() { } + const char * name() const { return "lib3"; @@ -168,6 +170,8 @@ namespace lib4 class lib4_error_category_imp : public boost::system::error_category { public: + lib4_error_category_imp() : boost::system::error_category() { } + const char * name() const { return "lib4";