Boost logo

Boost :

From: Gabriel Dos Reis (Gabriel.Dos-Reis_at_[hidden])
Date: 2000-07-21 16:56:24

"Paul A. Bristow" <pbristow_at_[hidden]> writes:


| Daryle Walker suggested
| static const bool is_specialized() { return false; }
| which does correctly return the expected bool
| but this is different from numeric_limits and requires a call
| boost::math_const<long>::is_specialized()
| instead of
| boost::math_const<long>::is_specialized // as numeric_limits
| I feel the is_specialized is useful, but to be different from numeric_limits
| is unacceptable.

is_specialized as a function is unnacceptable, at least for some of us
who might want to use it as template-argument.

| So with regret I propose to follow the current MS limits bodge, or leave it
| out for now.
| At least with a static_cast<bool> the code will always be correct and never
| need changing.
| Other views or suggestions?

I'd suggest to go with the enum-trick.

-- Gaby
CodeSourcery, LLC

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