Boost logo

Boost :

From: Kevin Lynch (krlynch_at_[hidden])
Date: 2002-09-10 17:00:17

>>>1) Why are these hyperbolic functions over T unqualified?
>>> T asinh_down(const T& x) { return ::asinh(x); }
>>> T asinh_up (const T& x) { return ::asinh(x); }
>>> T acosh_down(const T& x) { return ::acosh(x); }
>>> T acosh_up (const T& x) { return ::acosh(x); }
>>> T atanh_down(const T& x) { return ::atanh(x); }
>>> T atanh_up (const T& x) { return ::atanh(x); }
>>Somebody else will probably answer. But I seem to remember the Standard
>>doesn't require these functions of <cmath> to be defined in the namespace
>>'std'. It was also discussed on gcc mailing-list (I hope my memory
>>doesn't fail me).
> I see.
> I don't know about that, -though I thought ALL std functions go in std::-.
> Perhaps someone else can inform us.

The inverse hyperbolics didn't appear in math.h until C99; in other
words, they aren't technically part of C89/C++98. Since std is (more or
less) closed by fiat, they really shouldn't appear in std (<cmath> is
section 26.5, I think ... but it might be 25.6)

Kevin Lynch				voice:	(617) 353-6025
Physics Department			Fax: (617) 353-9393
Boston University			office:	 PRB-361
590 Commonwealth Ave.			e-mail:	 krlynch_at_[hidden]
Boston, MA 02215 USA

Boost list run by bdawes at, gregod at, cpdaniel at, john at