От: | wander | ||
Дата: | 24.09.09 18:49 | ||
Оценка: |
#include <boost/mpl/vector.hpp>
#include <boost/mpl/transform.hpp>
#include <boost/type_traits.hpp>
template <typename types>
struct pointers
{
typedef typename boost::mpl::transform<types, boost::add_pointer<_1> >::type result;
};
int main()
{
typedef pointers<boost::mpl::vector<int, char, long> >::result type;
}