Boost C++ Libraries: Ticket #5295: boost/range/sub_range.hpp cannot be included by itself https://svn.boost.org/trac10/ticket/5295 <p> When I try to compile a simple test: </p> <blockquote> <p> #include &lt;boost/range/sub_range.hpp&gt; </p> </blockquote> <blockquote> <p> int main() { return 0; } </p> </blockquote> <p> I got the following error (Linux x86_64, GCC 4.5.1): </p> <p> $ g++ test.cpp In file included from test.cpp:2:0: /usr/include/boost/range/sub_range.hpp:15:21: error: missing binary operator before token "(" </p> <p> That's because BOOST_WORKAROUND is used on line 15, before corresponding header included on line 20. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5295 Trac 1.4.3 Neil Groves Wed, 16 Mar 2011 23:25:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5295#comment:1 https://svn.boost.org/trac10/ticket/5295#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">fixed</span> </li> </ul> <p> Resolved on trunk. </p> Ticket