Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61672 - trunk/libs/system/test
From: dgregor_at_[hidden]
Date: 2010-04-29 00:58:39


Author: dgregor
Date: 2010-04-29 00:58:39 EDT (Thu, 29 Apr 2010)
New Revision: 61672
URL: http://svn.boost.org/trac/boost/changeset/61672

Log:
Fix a standards-conformance problem where we default-initialize a const object of non-POD class type without a user-declared default constructor
Text files modified:
   trunk/libs/system/test/error_code_user_test.cpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/libs/system/test/error_code_user_test.cpp
==============================================================================
--- trunk/libs/system/test/error_code_user_test.cpp (original)
+++ trunk/libs/system/test/error_code_user_test.cpp 2010-04-29 00:58:39 EDT (Thu, 29 Apr 2010)
@@ -108,6 +108,8 @@
     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 @@
   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";


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk