Boost logo

Boost :

Subject: Re: [boost] New dependency report
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2014-06-06 03:56:35


2014-06-05 23:45 GMT+04:00 Vicente J. Botet Escriba <
vicente.botet_at_[hidden]>:

> Anyway, here is my proposal to break the mpl -> type_traits dependency
> (following the Peter suggestion)
>
> - Move to a new core_type_traits everything that make mpl depend on
> type_traits
> *|boost/type_traits/detail/bool_trait_def.hpp||
> * boost/type_traits/detail/bool_trait_undef.hpp||
> * boost/type_traits/is_class.hpp||
> * boost/type_traits/is_empty.hpp||
> * boost/type_traits/is_reference.hpp||
> * boost/type_traits/is_same.hpp|
> * boost/mpl/bool.hpp
> * boost/mpl/aux_/lambda_support.hpp
> * boost/mpl/bool_fwd.hpp
> * boost/mpl/integral_c_tag.hpp
> * boost/mpl/aux_/config/static_constant.hpp
> | * boost/mpl/aux_/adl_barrier.hpp
> * boost/mpl/aux_/config/adl.hpp
> * boost/mpl/aux_/config/gcc.hpp
> * boost/mpl/aux_/config/msvc.hpp
> * boost/mpl/aux_/config/intel.hpp
> * boost/mpl/aux_/config/workaround.hpp
>

May be it would be better to move boost/mpl/bool.hpp,
boost/mpl/bool_fwd.hpp, boost/mpl/integral_c.hpp, mpl/or.hpp,
mpl/identity.hpp, mpl/and.hpp into the Core library? Those classes are
already mostly the part of C++, they are very simple and very widely used.
Such reorganization will remove the dependency to MPL from many libraries.

-- 
Best regards,
Antony Polukhin

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk