|
Boost : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-05-25 07:51:55
At 01:05 PM 5/23/2003, Rob Stewart wrote:
>> - and I get a compile-time error:
>> 'abort' is not a member of std.
>
>You have to conditionally compile the using directive, but you
>won't have to conditionally compile "abort" versus "std::abort"
>when you do that.
Yes. Just to be sure that is clear, here is some sample code:
#include <boost/config.hpp>
#include <ctime>
# ifdef BOOST_NO_STDC_NAMESPACE
namespace std { using ::clock_t; using ::clock; }
# endif
...
std::clock_t my_clock = std::clock();
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk