summaryrefslogtreecommitdiff
path: root/boost/typeof/template_encoding.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/typeof/template_encoding.hpp')
-rw-r--r--boost/typeof/template_encoding.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/boost/typeof/template_encoding.hpp b/boost/typeof/template_encoding.hpp
index bae7e89cf9..0bb7ed36a2 100644
--- a/boost/typeof/template_encoding.hpp
+++ b/boost/typeof/template_encoding.hpp
@@ -141,15 +141,15 @@
>\
struct encode_type_impl<V, Name<BOOST_PP_ENUM_PARAMS(Size, P)> >\
{\
- typedef typename boost::type_of::push_back<V, boost::mpl::size_t<ID> >::type V0;\
+ typedef typename boost::type_of::push_back<V, boost::type_of::constant<std::size_t,ID> >::type V0;\
BOOST_PP_SEQ_FOR_EACH_I(BOOST_TYPEOF_REGISTER_TEMPLATE_ENCODE_PARAM, ~, Params)\
typedef BOOST_PP_CAT(V, Size) type;\
};\
template<class Iter>\
- struct decode_type_impl<boost::mpl::size_t<ID>, Iter>\
+ struct decode_type_impl<boost::type_of::constant<std::size_t,ID>, Iter>\
{\
- typedef decode_type_impl<boost::mpl::size_t<ID>, Iter> self_t;\
- typedef boost::mpl::size_t<ID> self_id;\
+ typedef decode_type_impl<boost::type_of::constant<std::size_t,ID>, Iter> self_t;\
+ typedef boost::type_of::constant<std::size_t,ID> self_id;\
typedef Iter iter0;\
BOOST_PP_SEQ_FOR_EACH_I(BOOST_TYPEOF_REGISTER_TEMPLATE_DECODE_PARAM, ~, Params)\
BOOST_TYPEOF_TYPEDEF_DECODED_TYPE(Name, Params)\