22 Dec
2004
22 Dec
'04
10:02 p.m.
Ray Hilton wrote:
Something along theese lines #include
#define BOOST_REMOVE_POINTER(arg) \ namespace boost \ { \ template <> \ struct remove_pointer
\ { \ typedef arg type; \ }; \ } // end namespace boost user file
struct abc { object x; object b; }; BOOST_REMOVE_POINTER(abc)
boosts remove_pointer<T> will now work as expected for abc types
Do such macros already exist in boost?
Yes. Use BOOST_BROKEN_COMPILER_TYPE_TRAITS_SPECIALIZATION, as described in the docs below this table: http://www.boost.org/libs/type_traits/index.html#transformations Jonathan