| 1 | // Boost.TypeErasure library |
| 2 | // |
| 3 | // Copyright 2012 Steven Watanabe |
| 4 | // |
| 5 | // Distributed under the Boost Software License Version 1.0. (See |
| 6 | // accompanying file LICENSE_1_0.txt or copy at |
| 7 | // http://www.boost.org/LICENSE_1_0.txt) |
| 8 | // |
| 9 | // $Id$ |
| 10 | |
| 11 | #ifndef BOOST_TYPE_ERASURE_DETAIL_GET_SIGNATURE_HPP_INCLUDED |
| 12 | #define BOOST_TYPE_ERASURE_DETAIL_GET_SIGNATURE_HPP_INCLUDED |
| 13 | |
| 14 | #include <boost/typeof/typeof.hpp> |
| 15 | #include <boost/type_traits/remove_pointer.hpp> |
| 16 | |
| 17 | namespace boost { |
| 18 | namespace type_erasure { |
| 19 | namespace detail { |
| 20 | |
| 21 | template<class Concept> |
| 22 | struct get_signature { |
| 23 | BOOST_TYPEOF_NESTED_TYPEDEF_TPL(nested, &Concept::apply) |
| 24 | typedef typename boost::remove_pointer< |
| 25 | typename nested::type |
| 26 | >::type type; |
| 27 | }; |
| 28 | |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | #endif |
| 34 | |