|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-11-03 11:00:10
"Ovanes Markarian" <om_boost_at_[hidden]> writes:
> I am trying to get enable if to work with Visual C++ 7.0 and boost 1.33.
>
>
> for the following member function implemenation I get an error:
>
> template<>
> typename boost::enable_if<boost::is_pointer<_ElemFct::result_type>, _ElemFct::result_type>::type
> operator->()
> {
> return get_at(ptr_coll, pos);
> }
>
> template<>
> typename boost::enable_if<boost::is_reference<_ElemFct::result_type>,
> boost::add_pointer<_ElemFct::result_type>::type>::type
> operator->()
> {
> return &(get_at(ptr_coll, pos));
> }
Sorry, but VC 7.0 doesn't support SFINAE, so enable_if can't work there.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
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