
21 Jul
2004
21 Jul
'04
12:47 p.m.
Synge Todo <wistaria@comp-phys.org> writes:
From: David Abrahams <dave@boost-consulting.com> Date: Wed, 21 Jul 2004 07:20:20 -0400
I am a bit confused. Can "using std::pow;" be accepted by the compilers without a declaration of std::pow?
No it can't.
Thank you, David. It means that we have to always include <cmath> beforehand whenever we include Boost.Random headers, since it contains a line declaring "using std:pow;". This applies even if we just include Boost.Random headers without any instantiation of Boost.Random class templates. Isn't this requirement too strong for users???
Yes. Boost.Random should #include <cmath> itself. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com