2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-24 18:12:48 +00:00
Commit Graph

146 Commits

Author SHA1 Message Date
Jens Maurer
94de4132a2 include <cmath> for std::pow
[SVN r26163]
2004-11-09 21:04:35 +00:00
Michael Stevens
7de99be8ad Use std::min/max instead of BOOST_USING_STD_MIN/MAX
for gcc-2.95. Ok for other conforming compilers.


[SVN r25490]
2004-09-30 19:15:32 +00:00
Vladimir Prus
27ecfe77d4 Add missing includes. Without them g++ 3.4 can't compile the following
program:

    #include <boost/random.hpp>
    using namespace boost;
    boost::mt19937 rng;
    uniform_int<> gen(0, 10);

    void do_it()
    {
        gen(rng);
    }


[SVN r25475]
2004-09-29 13:25:37 +00:00
Michael Stevens
3e53b922c7 Work around GCC 3.3 problem with
max() { (std::numeric_limit<xx>::max) (); }
Causing and infinite recursion


[SVN r24496]
2004-08-16 09:09:35 +00:00
Jens Maurer
0d597a6afc fix compiler warning on MSVC 7.1 (Stefan Slapeta)
[SVN r24194]
2004-07-30 21:08:06 +00:00
Douglas Gregor
c5d8766e66 Converted to Boost Software License, Version 1.0
[SVN r24096]
2004-07-27 03:43:34 +00:00
Eric Niebler
9febe9be3f move BOOST_USING_STD_MIN and _MAX and BOOST_PREVENT_MACRO_SUBSTITUTION to the config headers, remove boost/minmax.hpp, update coding guidelines
[SVN r23313]
2004-07-02 01:21:32 +00:00
Eric Niebler
2f7b6e8f3d remove std_min and std_max, update minmax coding guidelines
[SVN r23162]
2004-06-23 04:49:48 +00:00
Jens Maurer
3ab77175bc add seed() member functions as per latest WG21 paper (Mario Ruetti)
[SVN r22911]
2004-05-24 20:56:58 +00:00
Jens Maurer
015da96141 add missing set(min, max) to uniform_smallint_float constructor (Topher Cooper)
[SVN r22851]
2004-05-17 21:18:40 +00:00
Eric Niebler
f63ff478d2 fix min/max problems
[SVN r22408]
2004-02-28 21:21:30 +00:00
Eric Niebler
f6d8b32527 fix min/max problems
[SVN r22407]
2004-02-28 21:14:04 +00:00
Eric Niebler
5e99463ce1 remove minmax hack from win32.hpp and fix all places that could be affected by the minmax macros
[SVN r22394]
2004-02-26 18:27:02 +00:00
Jens Maurer
e0a338c1d5 add missing #include's (Geoffrey Romer, SourceForge bug 882340)
[SVN r21928]
2004-01-25 21:22:48 +00:00
Jens Maurer
7a1327749d fix type of _factor (Mario Rütti)
[SVN r21776]
2004-01-15 19:50:29 +00:00
Jens Maurer
e95f6980ec fix double-increment bug
[SVN r21428]
2003-12-30 23:14:11 +00:00
Jens Maurer
cdae4805e6 fix off-by-one bug
[SVN r21422]
2003-12-29 22:50:02 +00:00
John Maddock
a19a8feccd Added workaround for old style iostreams.
[SVN r21380]
2003-12-23 11:42:42 +00:00
Jens Maurer
b4aeb8c711 portability fix for Borland 5.6 (Hugo Duncan)
[SVN r20571]
2003-10-31 02:45:36 +00:00
Jens Maurer
08ea2c82c7 remove superfluous ; (Michael Stevens)
[SVN r20513]
2003-10-28 01:32:49 +00:00
Jens Maurer
5919a68a27 add definitions for in-class static constants, detected by IBM compiler
(Matthias Troyer)


[SVN r19466]
2003-08-05 19:32:30 +00:00
Dave Abrahams
06f83a9575 Improved support for BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
[SVN r19383]
2003-07-31 01:11:36 +00:00
Dave Abrahams
142bd6210a operators.hpp, operators_test.cpp - workaround for compilers not
supporting the PP lib, many workarounds for another problem which
   may be our bug.

linear_congruential.hpp - Borland workaround


[SVN r19350]
2003-07-30 01:11:14 +00:00
Jens Maurer
4ef5ff4519 work around MSVC and Borland problem: they can't access template
parameters of the surrounding class from friend function template
inline definitions


[SVN r19223]
2003-07-19 21:28:55 +00:00
Jens Maurer
d7884c2c9d work around Metrowerks that tries to instantiate an unused static member
function and explodes on the static assert therein


[SVN r19199]
2003-07-18 21:06:30 +00:00
Jens Maurer
2890227e23 work around MSVC and Borland problem: they can't access template
parameters of the surrounding class from friend function template
inline definitions


[SVN r19198]
2003-07-18 20:49:56 +00:00
Jens Maurer
f9739bf47c make sure compiler workarounds are mutually exclusive
[SVN r19156]
2003-07-16 18:00:35 +00:00
Jens Maurer
ba4fd438a2 allow min == max and assert on min > max
[SVN r19117]
2003-07-14 20:09:43 +00:00
Dave Abrahams
dab4eaf3cb GCC-2.x workarounds
[SVN r19078]
2003-07-11 23:47:01 +00:00
Dave Abrahams
2fe6582b77 Work properly with NO_MEMBER_TEMPLATE_FRIENDS
[SVN r19076]
2003-07-11 22:21:28 +00:00
Dave Abrahams
87fd676ddc Work properly with NO_MEMBER_TEMPLATE_FRIENDS
[SVN r19071]
2003-07-11 22:15:35 +00:00
Jens Maurer
33d3fd71dd move static assertions on std::numeric_limits<> from class to constructor
scope to suit MSVC


[SVN r19000]
2003-07-09 19:47:11 +00:00
Jens Maurer
5b26d1be08 cast 0 to UIntType before performing bit magic
[SVN r18989]
2003-07-09 12:56:40 +00:00
Jens Maurer
1e59f7a328 add missing nested template
[SVN r18982]
2003-07-09 00:01:00 +00:00
Jens Maurer
0efba326a7 merge with wg21_random_proposal branch
[SVN r18973]
2003-07-07 20:57:14 +00:00
Jens Maurer
5afe5eba35 merge with wg21_random_proposal branch
[SVN r18950]
2003-07-06 21:53:42 +00:00
Jens Maurer
772cee7448 work around SGI MIPSpro 7.3.1.x optimizer problem (Synge Todo)
[SVN r18232]
2003-04-11 08:39:43 +00:00
Jens Maurer
88bc44f28e avoid signed/unsigned warning
[SVN r18202]
2003-04-08 09:45:02 +00:00
Jens Maurer
ba41696f9e MSVC portability improvements (Kirill Lapshin)
[SVN r18162]
2003-04-02 23:22:00 +00:00
Jens Maurer
1d90a569ac make work with unsigned IntType (Mario Rueti, Matthias Troyer)
[SVN r18160]
2003-04-02 21:42:53 +00:00
Beman Dawes
59c1941a08 Borland fixes (Alisdair Meredith)
[SVN r17948]
2003-03-17 01:39:15 +00:00
Björn Karlsson
7c38b53874 Changed RealType& to RealType for mean and sigma
[SVN r17632]
2003-02-25 10:29:29 +00:00
Dave Abrahams
c102ef50df Added missing #include
[SVN r17101]
2003-01-31 05:01:16 +00:00
Dave Abrahams
7cf0c648ec Compiler workarounds
[SVN r16911]
2003-01-15 15:43:36 +00:00
Beman Dawes
8d724db34e add or update See www.boost.org comments
[SVN r16708]
2002-12-27 16:51:53 +00:00
Jens Maurer
07f02ef298 check for BOOST_NO_MEMBER_TEMPLATE_FRIENDS
[SVN r16682]
2002-12-22 22:03:11 +00:00
Jens Maurer
b9fb804fa4 fix various platform-specific compile problems
[SVN r16681]
2002-12-22 21:27:42 +00:00
Jens Maurer
597455959d make sure to set all mantissa bits of floating-point generators with the
seed(first,last) interface (Matthias Troyer)


[SVN r16123]
2002-11-05 20:29:51 +00:00
Jens Maurer
c6156071cc add operator<< and operator>> for save/restore of distributions
[SVN r16109]
2002-11-04 22:07:23 +00:00
Jens Maurer
c524749d74 add Adaptor template parameter, to convert output from underlying generator
to input of distribution


[SVN r16104]
2002-11-04 21:37:30 +00:00