Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2003-12-29 17:04:25


Yes, that's ok.
Thanks for catching it.

Jens Maurer

John Maddock wrote:
> The following patch gets the random lib compiling with gcc2.95.3, it also
> fixes regressions with the graph lib tests (which depend upon the random
> lib),
>
> OK to commit?
>
> Thanks,
>
> John.
>
> Index: pass_through_engine.hpp
> ===================================================================
> RCS file: /cvsroot/boost/boost/boost/random/detail/pass_through_engine.hpp,v
> retrieving revision 1.2
> diff -u -b -r1.2 pass_through_engine.hpp
> --- pass_through_engine.hpp 11 Jul 2003 22:21:28 -0000 1.2
> +++ pass_through_engine.hpp 22 Dec 2003 12:29:51 -0000
> @@ -53,6 +53,8 @@
> UniformRandomNumberGenerator _rng;
> };
>
> +#ifndef BOOST_NO_STD_LOCALE
> +
> template<class UniformRandomNumberGenerator, class CharT, class Traits>
> std::basic_ostream<CharT,Traits>&
> operator<<(
> @@ -72,6 +74,26 @@
> {
> return is >> ud.base();
> }
> +
> +else // no new streams
> +
> +template<class UniformRandomNumberGenerator>
> +inline std::ostream&
> +operator<<(std::ostream& os,
> + const pass_through_engine<UniformRandomNumberGenerator>& ud)
> +{
> + return os << ud.base();
> +}
> +
> +template<class UniformRandomNumberGenerator>
> +inline std::istream&
> +operator>>(std::istream& is,
> + const pass_through_engine<UniformRandomNumberGenerator>& ud)
> +{
> + return is >> ud.base();
> +}
> +
> +#endif
>
> } // namespace detail
> } // namespace random
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
>


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