Boost logo

Boost :

From: Neal D. Becker (nbecker_at_[hidden])
Date: 2002-05-16 12:27:32


The problem seems to be:

  friend std::ostream& operator<<(std::ostream& os, const shuffle_output& s)
  {
    os << s._rng << " " << s.y << " ";
    std::copy(s.v, s.v+k, std::ostream_iterator<result_type>(os, " "));
    return os;
  }

I believe that "result_type" is upsetting gcc. Is this code correct?
As a friend (not a member function), does operator<< have access to
the result_type typedef? Any idea how to fix it?


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