Boost logo

Boost :

Subject: Re: [boost] [xint] Third release is ready, requesting preliminary review
From: Scott McMurray ([hidden])
Date: 2010-05-03 20:32:03

On 3 May 2010 20:21, Chad Nelson <chad.thecomfychair_at_[hidden]> wrote:
> Possible, yes -- but it relies on a Boost library to do so.

Not in the slightest. You can always use specialization to do it, like:

    template <typename T, bool S = std::numeric_limits<T>::is_specialized>
    struct foo { void bar() { ... no min/max ...} };
    template <typename T>
    struct foo<T, true> { void bar() { ... has min/max ...} };

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