$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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?