Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / histogram / axis / option.hpp
index 0c824b9..f6142f9 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef BOOST_HISTOGRAM_AXIS_OPTION_HPP
 #define BOOST_HISTOGRAM_AXIS_OPTION_HPP
 
-#include <boost/mp11.hpp>
 #include <type_traits>
 
 /**
@@ -28,7 +27,7 @@ struct bitset : std::integral_constant<unsigned, Bits> {
   /// Returns true if all option flags in the argument are set and false otherwise.
   template <unsigned B>
   static constexpr auto test(bitset<B>) {
-    return std::integral_constant<bool, static_cast<bool>(Bits & B)>{};
+    return std::integral_constant<bool, static_cast<bool>((Bits & B) == B)>{};
   }
 };