axis_regular_fail1.cpp 492 B

123456789101112131415
  1. // Copyright 2019 Hans Dembinski
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt
  5. // or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. #include <boost/histogram/axis/regular.hpp>
  7. using namespace boost::histogram;
  8. int main() {
  9. // circular regular axis cannot be growing
  10. (void)axis::regular<double, boost::use_default, boost::use_default,
  11. decltype(axis::option::circular | axis::option::growth)>(1, 2, 3);
  12. }