Boost logo

Boost Users :

From: Nico Galoppo (nico_at_[hidden])
Date: 2006-11-08 16:03:22


Eric Niebler wrote:
> Nico Galoppo wrote:
>
>>Hi,
>>
>>I'm getting the following warning in VC8, using BOOST_FOREACH on a container of
>>shared_ptr<>s. The container itself is also a shared_ptr.
>>
>>warning C4686: 'boost::foreach_detail_::make_probe' : possible change in
>>behavior, change in UDT return calling convention
>>
>>The warning happens at the following line
>>
>> shared_ptr<Scene> scene(new Scene());
>> typedef shared_ptr<Character> character_ptr;
>>
>> BOOST_FOREACH(character_ptr & actor, *scene) { ... }
>>
>>Unfortunately, I can't reproduce it in a simple program, it doesn't give me the
>>warning there.
>
>
>
> I haven't seen that one. A change of calling convention doesn't sound
> serious. It doesn't cause problems, does it? If it does, a repro (simple
> or not) would be helpful.
>
>

Thanks. As I said, a contained repro is hard to produce. Indeed, it doesn't seem
serious, but annoying nevertheless, because I can't even disable it with a
#pragma warning(disable:4686).

--nico


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