Skip to content

Commit

Permalink
Re-enable the optimization for boost > 1.86
Browse files Browse the repository at this point in the history
Summary:
The bug with `boost::container::flat_map::extract_sequence` has been fixed (see boostorg/container#288)
This should go out in boost 1.87 (probably in a few months).

Therefore, let's re-enable the optimization for boost versions != 1.86

Reviewed By: arnaudvenet

Differential Revision: D62436361

fbshipit-source-id: b2010fbae81f4b65039ee1dd6459c5e7021dbc3f
  • Loading branch information
arthaud authored and facebook-github-bot committed Sep 11, 2024
1 parent 507430f commit bd758a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sparta/FlatMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class FlatMap final
break;
}
default: {
#if (BOOST_VERSION / 100) >= 1086
#if (BOOST_VERSION / 100) == 1086
// TODO(T200541423): Boost 1.86.0 has a bug with `extract_sequence()` and
// `adopt_sequence`. Let's disable the optimization for now. See
// https://github.com/boostorg/container/issues/288
Expand Down

0 comments on commit bd758a8

Please sign in to comment.