Boost C++ Libraries: Ticket #13240: #include <boost/spirit/include/phoenix1.hpp> requires #include <complex> starting from boost 1.65.0 https://svn.boost.org/trac10/ticket/13240 <p> Compiling </p> <pre class="wiki">#include &lt;boost/spirit/include/phoenix1.hpp&gt; int main() { return 0; } </pre><p> with </p> <pre class="wiki">$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.1/gcc-7.2.0/include -std=gnu++14 </pre><p> results in </p> <pre class="wiki">In file included from /opt/wandbox/boost-1.65.0/gcc-7.2.0/include/boost/spirit/home/classic/phoenix.hpp:18:0, from /opt/wandbox/boost-1.65.0/gcc-7.2.0/include/boost/spirit/include/phoenix1.hpp:11, from prog.cc:1: /opt/wandbox/boost-1.65.0/gcc-7.2.0/include/boost/spirit/home/classic/phoenix/special_ops.hpp:62:48: error: 'complex' is not a member of 'std' template &lt;typename T&gt; struct rank&lt;PHOENIX_STD::complex&lt;T&gt; &gt; ^~~~~~~ /opt/wandbox/boost-1.65.0/gcc-7.2.0/include/boost/spirit/home/classic/phoenix/special_ops.hpp:62:48: error: 'complex' is not a member of 'std' /opt/wandbox/boost-1.65.0/gcc-7.2.0/include/boost/spirit/home/classic/phoenix/special_ops.hpp:62:57: error: template argument 1 is invalid template &lt;typename T&gt; struct rank&lt;PHOENIX_STD::complex&lt;T&gt; &gt; ^ /opt/wandbox/boost-1.65.0/gcc-7.2.0/include/boost/spirit/home/classic/phoenix/special_ops.hpp:62:59: error: expected unqualified-id before '&gt;' token template &lt;typename T&gt; struct rank&lt;PHOENIX_STD::complex&lt;T&gt; &gt; ^ </pre><p> Workaround to the problem is to #include &lt;complex&gt; before phoenix1.hpp but this should be probably done internally. </p> <p> On boost versions prior to 1.65.0 original code would compile w/o any errors (checked on wandbox.org). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13240 Trac 1.4.3 Kohei Takahashi Tue, 03 Oct 2017 00:50:31 GMT component changed; owner set https://svn.boost.org/trac10/ticket/13240#comment:1 https://svn.boost.org/trac10/ticket/13240#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Joel de Guzman</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">spirit</span> </li> </ul> Ticket Nikita Kniazev <nok.raven@…> Tue, 05 Dec 2017 19:38:24 GMT <link>https://svn.boost.org/trac10/ticket/13240#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13240#comment:2</guid> <description> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/spirit/pull/273"><span class="icon">​</span>https://github.com/boostorg/spirit/pull/273</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Wed, 13 Dec 2017 23:04:10 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/13240#comment:3 https://svn.boost.org/trac10/ticket/13240#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