Typo in N2134 <random> synopsis, generate_canonical

Typo in N2134 <random> synopsis, generate_canonical

Post by bop » Mon, 12 Feb 2007 14:26:47


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.yqcomputer.com/ ]
 
 
 

Typo in N2134 <random> synopsis, generate_canonical

Post by pete » Tue, 13 Feb 2007 08:50:25


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.yqcomputer.com/ ]