Boost C++ Libraries: Ticket #6855: Header xor_combine.hpp misses dependency https://svn.boost.org/trac10/ticket/6855 <p> The following minimal program </p> <pre class="wiki">#include "boost/random/xor_combine.hpp" int main() {} </pre><p> gives a lengthy compiler error (Tested with Visual studio 2008 and mingw gcc 4.8): </p> <pre class="wiki">boost\random\xor_combine.hpp|144|error: 'os' has not been declared| boost\random\xor_combine.hpp|144|error: 's' has not been declared| boost\random\xor_combine.hpp|144|error: ISO C++ forbids declaration of 'BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR' with no type [-fpermissive]| boost\random\xor_combine.hpp|153|error: 'is' has not been declared| boost\random\xor_combine.hpp|153|error: 's' has not been declared| boost\random\xor_combine.hpp|153|error: ISO C++ forbids declaration of 'BOOST_RANDOM_DETAIL_ISTREAM_OPERATOR' with no type [-fpermissive]| [snip] </pre><p> which can be traced down to the missing definition of the macro BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR (and presumably some others), which are defined via </p> <pre class="wiki">#include "boost/random/detail/operators.hpp" </pre><p> Indeed adding this include before the other one fixes the problem. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6855 Trac 1.4.3 Steven Watanabe Sat, 19 May 2012 13:39:32 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6855#comment:1 https://svn.boost.org/trac10/ticket/6855#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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/78512" title="Add missing #includes. Fixes #6855.">[78512]</a>) Add missing #includes. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6855" title="#6855: Bugs: Header xor_combine.hpp misses dependency (closed: fixed)">#6855</a>. </p> Ticket