Boost logo

Boost Users :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2007-03-19 17:46:30


Christian Henning wrote:
> Thanks for the answer. I figured that from the error messages. So,
> what would be the best to do?

Applying the attached changes should work.

Regards,
Tobias


--- fusion070319.cpp 2007-03-19 22:43:34.000000000 +0100
+++ fusion070319.cpp.orig 2007-03-19 22:42:07.000000000 +0100
@@ -1,7 +1,3 @@
-#include <iostream>
-#include <stdexcept>
-
-
 #include <vector>
 
 #include <boost/mpl/assert.hpp>
@@ -55,7 +51,7 @@
    : _init( false ), _size( 0 ) {}
 
    template< class T >
- void operator()( T& t ) const
+ void operator()( T& t )
    {
       if( !_init )
       {
@@ -74,8 +70,8 @@
 
 private:
 
- mutable bool _init;
- mutable size_t _size;
+ bool _init;
+ size_t _size;
 };
 
 struct print


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net