Removing many dependencies to Boost.MPL#527
Open
Becheler wants to merge 2 commits into
Open
Conversation
|
Boost dependency footprint vs Header-inclusion weights (graph files pulling each direct dependency in):
Transitive Boost modules: 69 → 69 (0) |
|
Compiler-warning counts vs
|
Becheler
force-pushed
the
refactor/mpl-to-mp11
branch
3 times, most recently
from
July 16, 2026 08:11
7155fe7 to
d54f6c5
Compare
Becheler
marked this pull request as ready for review
July 16, 2026 10:13
Becheler
force-pushed
the
refactor/mpl-to-mp11
branch
from
July 16, 2026 14:45
d54f6c5 to
e7fd958
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reducing dependencies deadweights.
Before submitting
developbranch.Type of change
Does this PR introduce a breaking change?
What this PR does
Migrates Boost.Graph's internal metaprogramming from Boost.MPL to the standard
<type_traits>.Removed dead
boost/mplincludes (included but unused)or.hppinsubgraph,void.hppingraph_traits,print.hpp+if.hppin CSRif.hppindirected_graph/undirected_graph/random_layout/detail/indexed_properties/detail/compressed_sparse_row_struct/graph_mutability_traitsbool.hppingraphml/planar_detail/face_iteratorsand.hpp+not.hppinpropertiesConverted internal metafunctions off MPL (resolved type identical)
mpl::if_<C,A,B>::typetostd::conditional<C::value,A,B>::type:adjacency_matrix,subgraph,properties,plod_generator,random,edge_list,labeled_graph,adjacency_list,detail/adjacency_listmpl::if_c<…>tostd::conditional<…>:betweenness_centrality,property_iter_rangempl::and_<A, mpl::not_<B>>::typetostd::integral_constant<bool, A::value && !B::value>:adjacency_list,detail/adjacency_listmpl::not_<is_same<X,void>>::valueto!is_same<X,void>::value:graph_conceptsmpl::eval_if<C,F1,F2>::typetostd::conditional<C::value,F1,F2>::type::type(lazy branch instantiation preserved) :labeled_graphmpl::bool_<B>tostd::integral_constant<bool,B>:labeled_graph(is_default)mpl::int_<N>tostd::integral_constant<int,N>: internal tag dispatch invf2_sub_graph_isotrue_/false_dispatch tags tostd::true_type/std::false_type:visitors,edge_list(is_random),adjacency_matrix,detail/is_distributed_selectorboost/mpl/*.hppto<type_traits>Motivation
MPL is an old dependency with long build times. It has been superseded by modern C++ standards and MP11.
This refactor switches to std and where possible.
Testing
Checklist
b2in thetest/directory).