|
Boost Users : |
From: Sergei Politov (spolitov_at_[hidden])
Date: 2008-04-15 09:44:20
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?
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