|
Boost Users : |
From: Michael Linck (mgl_at_[hidden])
Date: 2007-10-30 20:13:52
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<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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
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