$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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