
I think we'd have to see the return value of has_key to solve this mystery. It has to match your, rather complex, return type, after all. mike On Tue, 2007-10-30 at 15:35 +0100, Ovanes Markarian wrote:
Hello!
Does anybody else experience a problem using enable_if templates in Visual C++ Express 2005 SP1? I get compiler errors in this code:
template<class LookUpType_> typename boost::enable_if_c
::type at(LookUpType_ const& key)const { return has_key(view_, key); } template<class LookUpType_> typename boost::disable_if_c
::type at(LookUpType_ const& key) { return has_key(view_, key); } It blames that type is not a member of enable_if_c or disable_if_c? This is really strance, since this should not be considered by compiler as a possible template instantiation. is_const is an enum value containing either true or false.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users