--- trunk/src/utils/Predicate.hpp 2005/12/16 15:53:16 815 +++ trunk/src/utils/Predicate.hpp 2005/12/16 18:26:41 816 @@ -10,6 +10,14 @@ #define UTILS_PREDICATE_HPP #include + + +#if defined(__SUNPRO_CC) +# define USE_FACET(Type, loc) std::use_facet(loc, static_cast(0)) +#else +# define USE_FACET(Type, loc) std::use_facet< Type >(loc) +#endif + namespace oopse { template @@ -22,7 +30,7 @@ struct CharClassification: public PredFacade bool operator()( CharT c ) const { - return std::use_facet< std::ctype >(loc_).is( type_, c ); + return USE_FACET(std::ctype, loc_).is( type_, c ); } private: