Boost logo

Boost-Commit :

From: ramey_at_[hidden]
Date: 2008-03-31 12:16:24


Author: ramey
Date: 2008-03-31 12:16:24 EDT (Mon, 31 Mar 2008)
New Revision: 43957
URL: http://svn.boost.org/trac/boost/changeset/43957

Log:
correction of error which prevented compilation on gcc 43
Text files modified:
   trunk/libs/serialization/example/demo_shared_ptr.cpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/libs/serialization/example/demo_shared_ptr.cpp
==============================================================================
--- trunk/libs/serialization/example/demo_shared_ptr.cpp (original)
+++ trunk/libs/serialization/example/demo_shared_ptr.cpp 2008-03-31 12:16:24 EDT (Mon, 31 Mar 2008)
@@ -41,8 +41,8 @@
     }
 public:
     static int count;
- A::A(){++count;} // default constructor
- virtual A::~A(){--count;} // default destructor
+ A(){++count;} // default constructor
+ virtual ~A(){--count;} // default destructor
 };
 
 BOOST_SERIALIZATION_SHARED_PTR(A)
@@ -60,8 +60,8 @@
     }
 public:
     static int count;
- B::B() : A() {};
- virtual B::~B() {};
+ B() : A() {};
+ virtual ~B() {};
 };
 
 BOOST_SERIALIZATION_SHARED_PTR(B)
@@ -81,7 +81,7 @@
     std::cout << "unique element count = " << A::count << std::endl;
 }
 
-int main(int argc, char *argv[])
+int main(int /* argc */, char /* *argv[] */)
 {
     std::string filename(boost::archive::tmpdir());
     filename += "/testfile";


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