Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-11-21 19:03:41

"John Maddock" <john_at_[hidden]> writes:

> integral_constant<bool,b> derives from mpl::bool_<b> for backwards
> compatibility.

For still more backward compatibility we ought to have a conversion
in the other direction.

> Stupid question but why doesn't your function do:
> template <class T>
> typename is_fundamental<T>::type f(T)
> {
> return is_fundamental<T>::type();
> }

Stupid answer: broken compiler workaround.

Anyway, this isn't a big deal. Maybe not even worth acting on.

Dave Abrahams
Boost Consulting

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