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]
This commit is contained in:
Douglas Gregor
2010-04-29 04:58:39 +00:00
parent 2fe5d75e37
commit ae67c86d2b

View File

@ -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";