Boost logo

Boost Users :

From: Nico Galoppo (nico_at_[hidden])
Date: 2006-11-08 09:53:49


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.

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