Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2003-02-18 05:35:56


Many of the regression tests for the date time library are failing
currently because the library relies on std::abs<long long> being
available. AKAIK, the C++ standard doesn't require this so the library
shouldn't make use of it.

Maybe datetime should specify it's own version of abs like this:

#include <cstdlib>
#include <stdlib.h>

template <typename T> T abs(T i) { return std::abs(i); }
template <> long long abs(long long i) {return ::llabs(i); }

Markus


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