Topic: Typo in N2134 <random> synopsis, generate_canonical
Author: bop@gmb.dk ("Bo Persson")
Date: Sun, 11 Feb 2007 05:26:47 GMT Raw View
Section 26.4.2 Header <random> synopsis
lists the function template
template<class RealType, class UniformRandomNumberGenerator, std::size_t
bits>
result_type generate_canonical(UniformRandomNumberGenerator& g);
while section 26.4.7.2 has RealType as the return type
template<class RealType, class UniformRandomNumberGenerator, std::size_t
bits>
RealType generate_canonical(UniformRandomNumberGenerator& g);
The latter seems more correct.
Bo Persson
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: pete@versatilecoding.com (Pete Becker)
Date: Sun, 11 Feb 2007 23:50:25 GMT Raw View
Bo Persson wrote:
> Section 26.4.2 Header <random> synopsis
>
> lists the function template
>
> template<class RealType, class UniformRandomNumberGenerator, std::size_t
> bits>
> result_type generate_canonical(UniformRandomNumberGenerator& g);
>
> while section 26.4.7.2 has RealType as the return type
>
> template<class RealType, class UniformRandomNumberGenerator, std::size_t
> bits>
> RealType generate_canonical(UniformRandomNumberGenerator& g);
>
> The latter seems more correct.
>
>
The latter is, indeed, more correct, since the former is dead wrong. <g>
It's an editorial fix. Thanks.
--
-- Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com)
Author of "The Standard C++ Library Extensions: a Tutorial and
Reference." (www.petebecker.com/tr1book)
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]