From 7926f370df1ffd0e7e115088126c13c7888bdaf3 Mon Sep 17 00:00:00 2001 From: san Date: Wed, 25 Mar 2009 08:10:18 +0000 Subject: [PATCH] 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 --- src/SVTK/SVTK_Functor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.39.2