mirror of
https://github.com/boostorg/random.git
synced 2026-02-26 17:02:15 +00:00
Merge macro changes for Boost.Random; no functionality change
[SVN r79530]
This commit is contained in:
@@ -49,7 +49,7 @@ BOOST_AUTO_TEST_CASE(test_constructors) {
|
||||
boost::random::discrete_distribution<> dist;
|
||||
CHECK_PROBABILITIES(dist.probabilities(), list_of(1.0));
|
||||
|
||||
#ifndef BOOST_NO_0X_HDR_INITIALIZER_LIST
|
||||
#ifndef BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
||||
boost::random::discrete_distribution<> dist_il = { 1, 2, 1, 4 };
|
||||
CHECK_PROBABILITIES(dist_il.probabilities(), list_of(.125)(.25)(.125)(.5));
|
||||
#endif
|
||||
@@ -98,7 +98,7 @@ BOOST_AUTO_TEST_CASE(test_param) {
|
||||
BOOST_CHECK(param != param_default);
|
||||
BOOST_CHECK(!(param == param_default));
|
||||
|
||||
#ifndef BOOST_NO_0X_HDR_INITIALIZER_LIST
|
||||
#ifndef BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
||||
boost::random::discrete_distribution<>::param_type
|
||||
parm_il = { 1, 2, 1, 4 };
|
||||
CHECK_PROBABILITIES(parm_il.probabilities(), list_of(.125)(.25)(.125)(.5));
|
||||
|
||||
Reference in New Issue
Block a user