make_histogram_fail1.cpp 468 B

12345678910111213141516
  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. #include <boost/histogram/make_histogram.hpp>
  8. #include <vector>
  9. using namespace boost::histogram;
  10. int main() {
  11. // first and second arguments switched
  12. (void)make_histogram_with(axis::regular<>(3, 0, 1), std::vector<int>{});
  13. }