Opened 10 years ago
Closed 10 years ago
#6855 closed Bugs (fixed)
Header xor_combine.hpp misses dependency
Reported by: | Owned by: | No-Maintainer | |
---|---|---|---|
Milestone: | To Be Determined | Component: | random |
Version: | Boost 1.49.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The following minimal program
#include "boost/random/xor_combine.hpp" int main() {}
gives a lengthy compiler error (Tested with Visual studio 2008 and mingw gcc 4.8):
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]
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
#include "boost/random/detail/operators.hpp"
Indeed adding this include before the other one fixes the problem.
Note:
See TracTickets
for help on using tickets.
(In [78512]) Add missing #includes. Fixes #6855.