Boost logo

Boost Users :

From: Eric Niebler (eric_at_[hidden])
Date: 2006-11-08 10:50:18


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.

-- 
Eric Niebler
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