Fixed gcc build error

This commit is contained in:
Mathieu Champlon 2018-04-01 16:27:38 +02:00 committed by Mathieu Champlon
parent 20e7d50568
commit a2647d00e9

View file

@ -14,7 +14,7 @@ namespace
class base_class class base_class
{ {
public: public:
virtual void method( boost::function< void( int ) > functor ) = 0; virtual void method( const boost::function< void( int ) >& functor ) = 0;
}; };
void function( base_class& ); // the function will call 'method' with a functor to be applied void function( base_class& ); // the function will call 'method' with a functor to be applied