2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * Provide some aliases for TR1 stuff, with a fallback on Boost.
10 #include "wvautoconf.h"
12 #if defined(HAVE_TR1_FUNCTIONAL)
14 #include <tr1/functional>
21 using std::tr1::function
;
23 using std::tr1::shared_ptr
;
27 using namespace std::tr1::placeholders
;
30 #elif defined(HAVE_BOOST_FUNCTION_HPP)
32 #include <boost/bind.hpp>
33 #include <boost/function.hpp>
34 #include <boost/shared_ptr.hpp>
40 using boost::function
;
42 using boost::shared_ptr
;
45 #else /* We have neither TR1 or Boost, punt. */
46 #error "One of TR1 or Boost is required to use WvStreams"
49 #endif /* __WVTR1_H */