
8 Nov
2006
8 Nov
'06
2:53 p.m.
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