David Abrahams | 30 Aug 19:36
Picon
Picon
Favicon
Gravatar

Re: 1.34.1: boost bind issue with function template


on Fri Aug 29 2008, mbrodeur65 <martin.brodeur-AT-adacelcanada.com> wrote:

> Yes, you are right, there are only warnings. However, I'm a bit scared of
> possible side effects. I usually prefer to eliminate them by adopting the
> proper syntax, which obviously, I don't have.

There's no syntax to turn that warning off other than some MSVC-specific
pragma.  What the warning is telling you is, "previous versions of MSVC
were non-conforming in that they didn't support argument-dependent
lookup.  This version supports it, so overload resolution may have found
a different overload with this version than it would have with a
previous one."  In other words, everything is working as it should now.

>>> c:\Program Files\boost\boost_1_34_1\boost\visit_each.hpp(25) : warning
>>> C4675: 'void
>>> boost::_bi::visit_each<Visitor,void,boost::_mfi::mf1<R,T,A1>,boost::_bi::list2<boost::_bi::list_av_2<C
>>> *,A2>::B1,A2>>(V &,const boost::_bi::bind_t<R,F,L> &,int)' : resolved
>>> overload was found by argument-dependent lookup
>> 
>> I see no errors here, just a harmless warning. Am I missing something? 
>> 
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users <at> lists.boost.org
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>> 
>> 

--

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Gmane