
15 Apr
2008
15 Apr
'08
1:44 p.m.
The following example: ============================================== #include <boost/function.hpp> #include <boost/spirit/phoenix.hpp> int main() { boost::function<void()> f; phoenix::bind(f); } ============================================== Produces compilation warning on MSVC 9.0: C:\work\cpp\bind.cpp : warning C4717: 'phoenix::functor_action<boost::function<void __cdecl(void),std::allocator<void> > >::functor_action<boost::function<void __cdecl(void),std::allocator<void> > >' : recursive on all control paths, function will cause runtime stack overflow And stack overflow in runtime. What is wrong in this example?