Boost logo

Boost Users :

From: Witz (witz_at_[hidden])
Date: 2004-05-11 11:14:04


> > if the following code is commented out from visualc.hpp the standard
> > streaming operators become available for mersenne_twister - and they seem
> > to work fine.
> >
> > #if _MSC_VER <= 1310
> > # define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
> > #endif
>
> I admit to being a little surprised by that myself, I'll look into it...
>
> OK it was disabled by Beman Dawes with the comment "See format_test1 for
> example of why needed", and this test case does indeed fail if we undef that
> macro.

replacing the guards around the streaming operators in mersenne_twister and
lagged_fibonacci with:

#if !defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS) || (_MSC_VER >= 1310)

allows the code for both classes to compile under VC7.1. perhaps we need finer
grained guard macros?

ian


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