Boost C++ Libraries: Ticket #7181: 'boost::phoenix::actor<Expr>' : default constructor could not be generated https://svn.boost.org/trac10/ticket/7181 <p> Hi, </p> <p> The following code : </p> <pre class="wiki">#include &lt;boost/phoenix/bind.hpp&gt; void f() {} void g() { boost::phoenix::bind( &amp;f ); } </pre><p> generates with msvc 2010 the following warnings : </p> <pre class="wiki">1&gt;C:\dev\include\boost/phoenix/core/actor.hpp(273): warning C4510: 'boost::phoenix::actor&lt;Expr&gt;' : default constructor could not be generated 1&gt; with 1&gt; [ 1&gt; Expr=boost::proto::exprns_::basic_expr&lt;boost::phoenix::detail::tag::function_eval,boost::proto::argsns_::list1&lt;boost::proto::exprns_::basic_expr&lt;boost::proto::tagns_::tag::terminal,boost::proto::argsns_::term&lt;boost::phoenix::detail::function_ptr&lt;0,void,void (__cdecl *)(void)&gt;&gt;,0&gt;&gt;,1&gt; 1&gt; ] 1&gt; ..\..\src\blablabla.cpp(15) : see reference to class template instantiation 'boost::phoenix::actor&lt;Expr&gt;' being compiled 1&gt; with 1&gt; [ 1&gt; Expr=boost::proto::exprns_::basic_expr&lt;boost::phoenix::detail::tag::function_eval,boost::proto::argsns_::list1&lt;boost::proto::exprns_::basic_expr&lt;boost::proto::tagns_::tag::terminal,boost::proto::argsns_::term&lt;boost::phoenix::detail::function_ptr&lt;0,void,void (__cdecl *)(void)&gt;&gt;,0&gt;&gt;,1&gt; 1&gt; ] 1&gt;C:\dev\include\boost/phoenix/core/actor.hpp(273): warning C4610: struct 'boost::phoenix::actor&lt;Expr&gt;' can never be instantiated - user defined constructor required 1&gt; with 1&gt; [ 1&gt; Expr=boost::proto::exprns_::basic_expr&lt;boost::phoenix::detail::tag::function_eval,boost::proto::argsns_::list1&lt;boost::proto::exprns_::basic_expr&lt;boost::proto::tagns_::tag::terminal,boost::proto::argsns_::term&lt;boost::phoenix::detail::function_ptr&lt;0,void,void (__cdecl *)(void)&gt;&gt;,0&gt;&gt;,1&gt; 1&gt; ] 1&gt; </pre><p> I suppose one way to supress them would be to add them to the pragma disable at the top of phoenix/core/actor.hpp </p> <p> Cheers, <br /> MAT. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7181 Trac 1.4.3 m.champlon@… Sat, 30 Mar 2013 22:28:46 GMT attachment set https://svn.boost.org/trac10/ticket/7181 https://svn.boost.org/trac10/ticket/7181 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_phoenix_7181.patch</span> </li> </ul> Ticket m.champlon@… Sat, 30 Mar 2013 22:32:53 GMT <link>https://svn.boost.org/trac10/ticket/7181#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7181#comment:1</guid> <description> <p> Compiling phoenix\test\bind\bind_function_tests.cpp with msvc 2010 exhibits the warnings however using bjam they don't seem to show up, not sure why. The attached patch pragma disables them. </p> </description> <category>Ticket</category> </item> <item> <author>John Fletcher <J.P.Fletcher@…></author> <pubDate>Thu, 23 Jan 2014 22:10:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7181#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7181#comment:2</guid> <description> <p> Patch applied and posted to phoenix develop </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kohei Takahashi</dc:creator> <pubDate>Tue, 10 May 2016 14:18:04 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7181#comment:3 https://svn.boost.org/trac10/ticket/7181#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket