2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-22 17:33:00 +00:00
Commit Graph

255 Commits

Author SHA1 Message Date
Jens Maurer
94de4132a2 include <cmath> for std::pow
[SVN r26163]
2004-11-09 21:04:35 +00:00
Aleksey Gurtovoy
2c0fa5922b c++boost.gif -> boost.png replacement
[SVN r25573]
2004-10-05 15:45:52 +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
0333ba87f3 fix synopsis (Matthias Troyer)
[SVN r22063]
2004-01-29 22:54:28 +00:00
Jens Maurer
9d1370646a fix last change: some platforms don't have uint64_t
[SVN r21931]
2004-01-25 21:54:07 +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
616236112f check for overflow/underflow in uniform_int<> with large base_type (Mario Rütti)
[SVN r21778]
2004-01-15 19:53:06 +00:00
Jens Maurer
7a1327749d fix type of _factor (Mario Rütti)
[SVN r21776]
2004-01-15 19:50:29 +00:00
Jens Maurer
f1700f2eea fix typo
[SVN r21769]
2004-01-15 18:59:32 +00:00
Jens Maurer
5b317a631d test for degenerate case uniform_int<>(1,1) (Alan Stokes and others)
[SVN r21703]
2004-01-13 20:13:39 +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
Jens Maurer
e564080e71 document entropy() member function (Christoph Ludwig)
[SVN r21421]
2003-12-29 22:29:02 +00:00
Jens Maurer
1144277acd add simple "hello, world"-style example
[SVN r21420]
2003-12-29 22:28:28 +00:00
Jens Maurer
8a315d1ab3 fix const-correctness (Christoph Ludwig)
[SVN r21419]
2003-12-29 22:28:00 +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
340de0df14 update documentation for TR interface
(interface change for distributions, introduced variate_generator)


[SVN r20500]
2003-10-27 03:52:45 +00:00
Vladimir Prus
9f562428c7 Add V2 Jamfile
[SVN r20218]
2003-09-30 06:41:04 +00:00
Dave Abrahams
6c2080daf2 Use the import rule
[SVN r19968]
2003-09-08 17:38: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
Jens Maurer
a0c4b1e6d9 demonstrate uniform_int<> with min == max
[SVN r19116]
2003-07-14 20:09:11 +00:00
Jens Maurer
c7a58280c6 adapt to iterator adaptors interface change
[SVN r19088]
2003-07-12 14:18:31 +00:00
Dave Abrahams
dab4eaf3cb GCC-2.x workarounds
[SVN r19078]
2003-07-11 23:47:01 +00:00
Dave Abrahams
9496141de5 Fix misplaced brace
[SVN r19077]
2003-07-11 22:22:07 +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
372ebcbaf0 if we don't have either wstreambuf or wstring, we won't have wstringstream
[SVN r19048]
2003-07-11 13:11:46 +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