Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2003-02-18 12:10:56


> The problem is, VA _has_ std::abs. You just need a specialization for
> long long then.
>
> namespace std {
> template<> long long abs(long long n) { return llabs(n); }
> }
>
> Don't know if this is legal, though.

How about just skipping the template:

#ifdef _VA_WHATEVER_COMPILER_MACRO_IS
 namespace std {
   long long abs(long long n) { return llabs(n); }
 }
#endif

Jeff


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk