Skip to content

Commit

Permalink
Require boost version 1.59 to use small_vector
Browse files Browse the repository at this point in the history
`small_vector` seems to be buggy in version 1.58.
  • Loading branch information
msimberg committed Feb 7, 2018
1 parent 3d86300 commit cbc7496
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hpx/lcos/detail/future_data.hpp
Expand Up @@ -29,7 +29,9 @@

#include <boost/intrusive_ptr.hpp>

#if BOOST_VERSION < 105800
// NOTE: small_vector was introduced in 1.58 but seems to be buggy in that
// version, so use only from 1.59 onwards.
#if BOOST_VERSION < 105900
#include <vector>
#else
#include <boost/container/small_vector.hpp>
Expand Down Expand Up @@ -74,7 +76,7 @@ namespace detail
{
public:
typedef util::unique_function_nonser<void()> completed_callback_type;
#if BOOST_VERSION < 105800
#if BOOST_VERSION < 105900
typedef std::vector<completed_callback_type>
completed_callback_vector_type;
#else
Expand Down

0 comments on commit cbc7496

Please sign in to comment.