Skip to content

Conversation

@philippremy
Copy link

Since we build with C++14, we can use a std::const_reverse_iterator for the std::map instead of the BOOST_REVERSE_FOREACH macro.

Also use std::vector::emplace_back to construct the new std::pair in-place, which eliminates an unnecessary copy/temporary.

This removes all usages of Boost.Foreach from the project, making it no longer a required dependency.

Since we build with C++14, we can use a std::const_reverse_iterator for the std::map instead of the BOOST_REVERSE_FOREACH macro.

Also use std::vector::emplace_back to construct the new std::pair in-place, which eliminates an unnecessary copy/temporary value.

Signed-off-by: Philipp Remy <philipp.remy@law-school.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant