Skip to content
Snippets Groups Projects
Commit 8baf7705 authored by Rosen Matev's avatar Rosen Matev :sunny:
Browse files

Remove workaround for ROOT/cling problem with Boost small_vector

To be used for creating a reproducer and testing upcoming ROOT builds.

closes #75
parent 3667019b
No related branches found
No related tags found
No related merge requests found
Pipeline #1416895 passed
......@@ -66,15 +66,8 @@ namespace LHCb::Arena {
/// One byte past the end of the current block, or nullptr if it doesn't exist.
std::byte* m_current_end{nullptr};
// Explicitly specify boost::container::small_vector default template arguments
// to sidestep cling error, see lhcb/LHCb#75
#if BOOST_VERSION < 107100
/// All memory blocks owned by this arena.
boost::container::small_vector<gsl::span<std::byte>, 1, void> m_all_blocks;
#else
/// All memory blocks owned by this arena.
boost::container::small_vector<gsl::span<std::byte>, 1, void, void> m_all_blocks;
#endif
boost::container::small_vector<gsl::span<std::byte>, 1> m_all_blocks;
/// Approximate factor by which each block is larger than its predecessor.
static constexpr std::size_t growth_factor = 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment