Boost C++ Libraries: Ticket #2605: boost/function/function_template.hxx causes compile errors with gcc >= 4.3.x https://svn.boost.org/trac10/ticket/2605 <p> In file included from /usr/include/boost/function/detail/maybe_include.hpp:13, </p> <blockquote> <p> from /usr/include/boost/function/detail/function_iterate.hpp:14, from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:47, from /usr/include/boost/function.hpp:64, from ../inc/tools/AsynchronousCall.hxx:36, from ../inc/DrawViewShell.hxx:35, from /usr/src/ark/BUILD/ooo-build-3.0.1/build/ooo300-m14/sd/source/ui/app/sdmod2.cxx:79: </p> </blockquote> <p> /usr/include/boost/function/function_template.hpp:965: error: declaration of 'class R' /usr/include/boost/function/function_template.hpp:652: error: shadows template parm 'class R' /usr/include/boost/function/function_template.hpp:979: error: declaration of 'class R' /usr/include/boost/function/function_template.hpp:652: error: shadows template parm 'class R' /usr/include/boost/function/function_template.hpp:983: error: invalid use of incomplete type 'class boost::function0&lt;R&gt;' /usr/include/boost/function/function_template.hpp:667: error: declaration of 'class boost::function0&lt;R&gt;' /usr/include/boost/function/function_template.hpp:994: error: declaration of 'class R' /usr/include/boost/function/function_template.hpp:652: error: shadows template parm 'class R' /usr/include/boost/function/function_template.hpp:1000: error: 'void boost::function0&lt;R&gt;::operator==(const boost::function0&lt;R&gt;&amp;, const boost::function0&lt;R&gt;&amp;)' must take exactly one argument /usr/include/boost/function/function_template.hpp:1001: error: declaration of 'class R' /usr/include/boost/function/function_template.hpp:652: error: shadows template parm 'class R' /usr/include/boost/function/function_template.hpp:1007: error: 'void boost::function0&lt;R&gt;::operator!=(const boost::function0&lt;R&gt;&amp;, const boost::function0&lt;R&gt;&amp;)' must take exactly one argument /usr/include/boost/function/function_template.hpp:1017: error: declaration of 'class R' /usr/include/boost/function/function_template.hpp:652: error: shadows template parm 'class R' /usr/include/boost/function/function_template.hpp:1025: error: 'struct boost::function&lt;R ()()&gt;::clear_type' redeclared with different access /usr/include/boost/function/function_template.hpp:1098: error: 'class boost::function&lt;R ()()&gt;' redeclared with different access </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2605 Trac 1.4.3 Bernhard Rosenkraenzer <bero@…> Fri, 02 Jan 2009 23:39:17 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2605#comment:1 https://svn.boost.org/trac10/ticket/2605#comment:1 <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">duplicate</span> </li> </ul> <p> Turns out to be a dupe of 2499 </p> Ticket