Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2007-10-30 10:35:46


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<is_const, result_type>::type
            at(LookUpType_ const& key)const
        {
            return has_key(view_, key);
        }

        template<class LookUpType_>
        typename boost::disable_if_c<is_const, result_type>::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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net