2
0
mirror of https://github.com/boostorg/random.git synced 2026-01-24 06:02:15 +00:00
Commit Graph

171 Commits

Author SHA1 Message Date
Steven Watanabe
6ce516d9ed Merge [53462], [53699], and [53800] from the trunk.
[SVN r53871]
2009-06-13 17:54:06 +00:00
Jeremiah Willcock
d1a18ffcc9 Fixed almost all tab and min/max issues found by inspect tool
[SVN r53142]
2009-05-20 19:41:20 +00:00
Steven Watanabe
92409dc95d Merge [50997], [51120], [51171], [51210], [51253], [51311], [51337], [51400], [51410], [51413] from the trunk
[SVN r52492]
2009-04-19 14:55:57 +00:00
Marshall Clow
1fe2ce622e Merged revisions 50312 via svnmerge from
https://svn.boost.org/svn/boost/trunk

........
  r50312 | marshall | 2008-12-17 18:37:07 -0800 (Wed, 17 Dec 2008) | 1 line
  
  Applied patch from bug #1546
........


[SVN r50601]
2009-01-15 03:43:36 +00:00
John Maddock
c949cb3781 Merge fixes from Trunk.
Fixes #2392.

Change includes of <cmath> to <boost/config/no_tr1/config.hpp>.

Previously if Boost.TR1 was in the include path then including <cmath> pulls in all the new TR1 math functions, which in turn also requires linking to an external library. With auto-linking support this requires that library to have been built and be present in the library search path, even if the actual library under use is header only. 

[SVN r49314]
2008-10-13 09:00:03 +00:00
Steven Watanabe
b80576bebb Merge random from trunk
[SVN r47233]
2008-07-08 16:22:46 +00:00
Marshall Clow
f441c30dcd Merge from trunk to release
[SVN r43713]
2008-03-19 00:02:06 +00:00
Beman Dawes
cf95897a2e Full merge from trunk at revision 41356 of entire boost-root tree.
[SVN r41369]
2007-11-25 18:07:19 +00:00
John Maddock
9629ae44a5 Large patch from Ulrich Eckhardt to fix support for EVC++ 4.
[SVN r30670]
2005-08-25 16:27:28 +00:00
Jens Maurer
0b7d6db9e2 generalize initialization change to other than 32 bits
[SVN r30208]
2005-07-21 22:04:31 +00:00
Jens Maurer
381439b97d fix bug #1220358: probability p was not forwarded to contained bernoulli
[SVN r29791]
2005-06-24 22:13:43 +00:00
Douglas Gregor
9eacbed88b Revert Jens Maurer's changes until after release
[SVN r29116]
2005-05-21 15:57:01 +00:00
Jens Maurer
409ac3557a implement ctor and seeding for "unsigned long" and template<class Generator>,
use enable_if<> to guide overload resolution


[SVN r29077]
2005-05-19 21:29:06 +00:00
Jens Maurer
24b28494a9 prepare for negative binomial implementation
[SVN r29076]
2005-05-19 21:26:05 +00:00
Jens Maurer
280514ff28 use enable_if<> to guide overload resolution for template<class Generator> ctor
[SVN r29075]
2005-05-19 21:23:29 +00:00
Jens Maurer
b3b5001821 implement ctor and seeding for "unsigned long" and template<class Generator>,
use enable_if<> to guide overload resolution


[SVN r29074]
2005-05-19 21:21:32 +00:00
Douglas Gregor
f47d8a0bd9 Work around bug in Apple's GCC 3.3
[SVN r28903]
2005-05-14 18:36:13 +00:00
Douglas Gregor
247de90d65 Work around compilation bug in Apple's GCC 3.3
[SVN r28902]
2005-05-14 17:17:49 +00:00
Jens Maurer
a3e3daf579 add #include <cmath> for std::pow
[SVN r28793]
2005-05-10 20:30:46 +00:00
Jens Maurer
b450fc98f2 fix conceptual maths bug in seeding for mersenne_twister<>
[SVN r28270]
2005-04-15 09:28:57 +00:00
John Maddock
774dcb5188 Make engine_value_type public as per the TR.
[SVN r27375]
2005-02-14 11:53:50 +00:00
Douglas Gregor
6db20959fc Deal with macroized min/max
[SVN r26899]
2005-01-28 15:04:17 +00:00
Douglas Gregor
65362c1c47 Cast in the right places
[SVN r26674]
2005-01-11 15:34:18 +00:00
Jens Maurer
73e6db0840 as per the TR, input floating-point Engine's are not required to return
values in the range [0..1[ (Douglas Gregor)


[SVN r26612]
2004-12-31 15:55:27 +00:00
Jens Maurer
2b360fb849 fix sourceforge bug 911758: properly instantiate variate_generator<> using a
reference to the base engine


[SVN r26164]
2004-11-09 21:22:00 +00:00
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