
3 Nov
2005
3 Nov
'05
9 a.m.
"Ovanes Markarian" <om_boost@keywallet.com> 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