Boost C++ Libraries: Ticket #11493: Cannot compile qi::keyword directive test in c++11/14 modes. https://svn.boost.org/trac10/ticket/11493 <p> Cannot compile keyword.cpp test from Boost.Spirit Repository directory. Lot of errors looks like: </p> <p> boost/fusion/view/transform_view/detail/value_of_impl.hpp:37:74: error: no type named 'type' in 'boost::mpl::apply&lt;boost::fusion::detail::apply_transform_result&lt;boost::spirit::repository::qi::detail::string_keywords&lt;boost::fusion::cons&lt;boost::spirit::repository::qi::kwd_parser&lt;boost::spirit::qi::expect&lt;boost::fusion::cons&lt;boost::spirit::qi::literal_char&lt;boost::spirit::char_encoding::standard, true, false&gt;, boost::fusion::cons&lt;boost::spirit::qi::char_class&lt;boost::spirit::tag::char_code&lt;boost::spirit::tag::char_, boost::spirit::char_encoding::ascii&gt; &gt;, boost::fusion::nil_&gt; &gt; &gt;, char const (&amp;)<a class="changeset" href="https://svn.boost.org/trac10/changeset/2" title="Add Boost Disclaimer">[2]</a>, ... too long to be quoted ... </p> <p> As a workaround I was able to compile the example with -DBOOST_RESULT_OF_USE_TR1_WITH_DECLTYPE_FALLBACK and -DBOOST_RESULT_OF_USE_TR1 (any macro is working). Unfortunately, these flags breaks the my spirit parser in some other way with lot of other but similar errors. </p> <p> The real problem may be in Boost.Fusion. The best workaround I can use by now is to change the line in boost/fusion/support/detail/result_of.hpp from </p> <table class="wiki"> <tr>#if !defined(BOOST_RESULT_OF_USE_DECLTYPE) <td> defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) </td></tr></table> <p> to </p> <table class="wiki"> <tr>#if (!defined(BOOST_RESULT_OF_USE_DECLTYPE) &amp;&amp; !defined(BOOST_RESULT_OF_USE_TR1_WITH_DECLTYPE_FALLBACK)) <td> defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) </td></tr></table> <p> to prevent the define of macro BOOST_FUSION_NO_DECLTYPE_BASED_RESULT_OF </p> <p> Then I'm able to compile my project with keywords from spirit repository together with -DBOOST_RESULT_OF_USE_TR1_WITH_DECLTYPE_FALLBACK </p> <p> uname -a Darwin nikki.local 14.4.0 Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64 </p> <p> clang++ -v clang version 3.7.0 (trunk 241984) Target: x86_64-apple-darwin14.4.0 Thread model: posix </p> <p> boost 1.58. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11493 Trac 1.4.3 Joel de Guzman Wed, 01 Nov 2017 02:06:27 GMT <link>https://svn.boost.org/trac10/ticket/11493#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11493#comment:1</guid> <description> <p> Fixed: <a class="ext-link" href="https://github.com/boostorg/spirit/pull/256"><span class="icon">​</span>https://github.com/boostorg/spirit/pull/256</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joel de Guzman</dc:creator> <pubDate>Wed, 01 Nov 2017 02:06:42 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11493#comment:2 https://svn.boost.org/trac10/ticket/11493#comment:2 <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