Boost logo

Boost Users :

From: Witz (witz_at_[hidden])
Date: 2003-07-10 14:44:43


hi,

in my code i need to be able to save the state of my program including that
of he random number generators but under MSVC 7.1.3088 the following code:

int main()
{
         boost::mt19937 rng;
         std::cout << rng;

         return 0;
}

won't compile and gives the error:

"error C2679: binary '<<' : no operator found which takes a right-hand
operand of type 'boost::mt19937' (or there is no acceptable conversion)"

there a workaround for this (beyond my hacky solution of adding load and
save functions to the mersenne_twister class)?

thanks in advance,

ian whittley


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net