From 3260c2caa35e7da5f4ffa057bf230e520cc4ee8d Mon Sep 17 00:00:00 2001 From: Raffi Enficiaud Date: Sat, 27 Dec 2014 15:47:29 +0100 Subject: [PATCH] Fixing the overloads of xrange --- .../data/monomorphic/generators/xrange.hpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/include/boost/test/data/monomorphic/generators/xrange.hpp b/include/boost/test/data/monomorphic/generators/xrange.hpp index c715cc2f..a5ff697a 100755 --- a/include/boost/test/data/monomorphic/generators/xrange.hpp +++ b/include/boost/test/data/monomorphic/generators/xrange.hpp @@ -119,6 +119,11 @@ struct make_xrange { //____________________________________________________________________________// +//! Creates an xrange [begin, end) with given step. +//! +//! The step size cannot be null. +//! Creates an xrange [0, end) with unit step. "0" is the 0 of the SampleType, as returned by SampleType default constructor. +//! Creates an xrange [begin, end) with unit step template inline monomorphic::generated_by > xrange( Params const& params ) @@ -128,9 +133,7 @@ xrange( Params const& params ) //____________________________________________________________________________// -//! Creates an xrange [0, end) with unit step. -//! -//! "0" is the 0 of the SampleType, as returned by SampleType default constructor. +/// @overload boost::unit_test::data::xrange() template inline monomorphic::generated_by > xrange( SampleType const& end_val ) @@ -140,6 +143,7 @@ xrange( SampleType const& end_val ) //____________________________________________________________________________// +/// @overload boost::unit_test::data::xrange() template inline typename enable_if_c::value,monomorphic::generated_by > >::type xrange( SampleType const& end_val, Params const& params ) @@ -150,7 +154,7 @@ xrange( SampleType const& end_val, Params const& params ) //____________________________________________________________________________// -//! Creates an xrange [begin, end) with unit step +/// @overload boost::unit_test::data::xrange() template inline monomorphic::generated_by > xrange( SampleType const& begin_val, SampleType const& end_val ) @@ -161,9 +165,9 @@ xrange( SampleType const& begin_val, SampleType const& end_val ) //____________________________________________________________________________// -//! Creates an xrange [begin, end) with given step. -//! -//! The step size cannot be null. + + +/// @overload boost::unit_test::data::xrange() template inline monomorphic::generated_by > xrange( SampleType const& begin_val, SampleType const& end_val, StepType const& step_val )