00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00026 #ifndef SBUILD_TR1TYPES_H
00027 #define SBUILD_TR1TYPES_H
00028
00029 #include <sbuild/sbuild-config.h>
00030
00031 #ifdef HAVE_TR1_MEMORY
00032 #include <tr1/memory>
00033 #elif HAVE_BOOST_SHARED_PTR_HPP
00034 #include <boost/shared_ptr.hpp>
00035 namespace std {
00036 namespace tr1 {
00037 using boost::shared_ptr;
00038 using boost::static_pointer_cast;
00039 using boost::const_pointer_cast;
00040 using boost::dynamic_pointer_cast;
00041 }
00042 }
00043 #else
00044 #error A shared_ptr implementation is not available
00045 #endif
00046
00047 #ifdef HAVE_TR1_TUPLE
00048 #include <tr1/tuple>
00049 #elif HAVE_BOOST_TUPLE_TUPLE_HPP
00050 #include <boost/tuple/tuple.hpp>
00051 namespace std { namespace tr1 { using boost::tuple; using boost::get; } }
00052 #else
00053 #error A tuple implementation is not available
00054 #endif
00055
00056 #endif
00057
00058
00059
00060
00061
00062