Boost logo

Boost :

From: Oliver Frick (ofum_at_[hidden])
Date: 2002-10-13 11:48:08


I have a problem with boost::random, file linear_congruential.hpp
(rev 1.7) and CodeWarrior (MacOS Classic). A couple of months ago
a project that uses this file compiled, now it doesn't.

------------- from file linear_congruential.hpp:
#ifndef BOOST_NO_OPERATORS_IN_NAMESPACE
  template<class CharT, class Traits>
  friend std::basic_ostream<CharT,Traits>&
  operator<<(std::basic_ostream<CharT,Traits>& os,
             const linear_congruential& lcg)
  { os << lcg._x; return os; }
--------------
  ^^^ (line 98)
here, the compiler complains:
"unimplemented C++ feature"
with many other error messages following.
It compiles if I define macro BOOST_NO_OPERATORS_IN_NAMESPACE,
but I don't know if this was intended by the author?

Oliver Frick


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk