12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef BOOST_POINTER_TO_OTHER_HPP_INCLUDED
- #define BOOST_POINTER_TO_OTHER_HPP_INCLUDED
- namespace boost
- {
- template<class T, class U>
- struct pointer_to_other;
- template<class T, class U,
- template<class> class Sp>
- struct pointer_to_other< Sp<T>, U >
- {
- typedef Sp<U> type;
- };
- template<class T, class T2, class U,
- template<class, class> class Sp>
- struct pointer_to_other< Sp<T, T2>, U >
- {
- typedef Sp<U, T2> type;
- };
- template<class T, class T2, class T3, class U,
- template<class, class, class> class Sp>
- struct pointer_to_other< Sp<T, T2, T3>, U >
- {
- typedef Sp<U, T2, T3> type;
- };
- template<class T, class U>
- struct pointer_to_other< T*, U >
- {
- typedef U* type;
- };
- }
- #endif
|