Le 09/06/14 00:46, Peter Dimov a écrit :
Andrey Semashev wrote
mpl::bool_ is not the only thing TypeTraits uses from MPL, so this dependency won't go that easily.
The list appears long, ...
http://www.pdimov.com/tmp/report-b932921/type_traits.html#mpl
... but most of the nontrivial metaprogramming is done by common_type. The other contenders are floating_point_promotion and detail/template_arity_spec. |The floating_point_promotion dependency is only if BOOST_NO_CV_SPECIALIZATIONS is defined. Do we support compiler defining this?
$ grep -r BOOST_NO_CV_SPECIALIZATIONS *
boost/config/compiler/borland.hpp:# define BOOST_NO_CV_SPECIALIZATIONS
boost/config/compiler/mpw.hpp:# define BOOST_NO_CV_SPECIALIZATIONS
boost/config/suffix.hpp:# if defined(BOOST_NO_CV_SPECIALIZATIONS) \
The detail/template_arity_spec dependency more complex.
The reverse,
http://www.pdimov.com/tmp/report-b932921/mpl.html#type_traits
looks breakable as well.
How do you want to break it? Duplicating what is used? Best, Vicente