--- trunk/src/utils/Predicate.hpp 2005/04/22 21:57:16 516 +++ trunk/src/utils/Predicate.hpp 2009/11/25 20:02:06 1390 @@ -10,8 +10,16 @@ #define UTILS_PREDICATE_HPP #include -namespace oopse { + +#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 OpenMD { + template struct PredFacade{}; @@ -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: