Subject: [Boost-bugs] [Boost C++ Libraries] #7181: 'boost::phoenix::actor<Expr>' : default constructor could not be generated
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-27 10:03:03
#7181: 'boost::phoenix::actor<Expr>' : default constructor could not be generated
--------------------------------+-------------------------------------------
Reporter: m.champlon@⦠| Owner: theller
Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
Version: Boost 1.50.0 | Severity: Problem
Keywords: |
--------------------------------+-------------------------------------------
Hi,
The following code :
{{{
#include <boost/phoenix/bind.hpp>
void f() {}
void g()
{
boost::phoenix::bind( &f );
}
}}}
generates with msvc 2010 the following warnings :
{{{
1>C:\dev\include\boost/phoenix/core/actor.hpp(273): warning C4510:
'boost::phoenix::actor<Expr>' : default constructor could not be generated
1> with
1> [
1>
Expr=boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval,boost::proto::argsns_::list1<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal,boost::proto::argsns_::term<boost::phoenix::detail::function_ptr<0,void,void
(__cdecl *)(void)>>,0>>,1>
1> ]
1> ..\..\src\blablabla.cpp(15) : see reference to class template
instantiation 'boost::phoenix::actor<Expr>' being compiled
1> with
1> [
1>
Expr=boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval,boost::proto::argsns_::list1<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal,boost::proto::argsns_::term<boost::phoenix::detail::function_ptr<0,void,void
(__cdecl *)(void)>>,0>>,1>
1> ]
1>C:\dev\include\boost/phoenix/core/actor.hpp(273): warning C4610: struct
'boost::phoenix::actor<Expr>' can never be instantiated - user defined
constructor required
1> with
1> [
1>
Expr=boost::proto::exprns_::basic_expr<boost::phoenix::detail::tag::function_eval,boost::proto::argsns_::list1<boost::proto::exprns_::basic_expr<boost::proto::tagns_::tag::terminal,boost::proto::argsns_::term<boost::phoenix::detail::function_ptr<0,void,void
(__cdecl *)(void)>>,0>>,1>
1> ]
1>
}}}
I suppose one way to supress them would be to add them to the pragma
disable at the top of phoenix/core/actor.hpp
Cheers, [[br]]
MAT.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7181> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC