From: san Date: Wed, 25 Mar 2009 08:10:18 +0000 (+0000) Subject: Compiler error on Linux due to the predicate's copy constructor being called -> passi... X-Git-Tag: V2_1_0_beta~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7926f370df1ffd0e7e115088126c13c7888bdaf3;p=modules%2Fgui.git Compiler error on Linux due to the predicate's copy constructor being called -> passing the predicate as const reference and making its operator bool() also const --- diff --git a/src/SVTK/SVTK_Functor.h b/src/SVTK/SVTK_Functor.h index 84548a429..87d787895 100644 --- a/src/SVTK/SVTK_Functor.h +++ b/src/SVTK/SVTK_Functor.h @@ -102,7 +102,7 @@ namespace SVTK } //! To calculate the functor - bool operator()(TActor* theActor) + bool operator()(TActor* theActor) const { if(theActor->hasIO()) {