$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Ed Brey (brey_at_[hidden])
Date: 1999-09-29 09:18:09
Just noticed that we can simplify life further. Instead of:
Ed Brey wrote:
>
> #ifdef BOOST_NO_NAMESPACE_FOR_STDC
> #include <cmath>
> namespace std {
> inline int abs(int x) {return ::abs(x);}
> inline long abs(long x) {return ::labs(x);}
> ...
> }
> #endif
we could use using declarations to quickly pick up the names:
#ifdef BOOST_NO_NAMESPACE_FOR_STDC
#include <cstddef>
#include <cstdlib>
#include <cmath>
namespace std {
using ::size_t; using ::ptrdiff_t;
using ::div_t; using ::ldiv_t;
using ::abs; using ::labs;
using ::srand; using ::div; using ::ldiv; using ::rand;
using ::acos; using ::asin; using ::atan; using ::atan2; using ::ceil;
using ::cos; using ::cosh; using ::exp; using ::fabs; using ::floor;
using ::fmod; using ::frexp; using ::ldexp; using ::log; using ::log10;
using ::modf; using ::pow; using ::sin; using ::sinh; using ::sqrt;
using ::tan; using ::tanh;
}
#endif