Files
histogram/test/histogram_dynamic_fill_one_dimensional_tuple_fail.cpp
2019-01-11 00:06:25 +01:00

16 lines
475 B
C++

// Copyright 2018 Hans Dembinski
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/histogram.hpp>
#include <tuple>
using namespace boost::histogram;
int main() {
std::vector<axis::variant<axis::integer<>>> v(1, axis::integer<>(0, 2));
auto a = make_histogram(v);
a(std::make_tuple(1)); // fails, because tuple is intentionally not unpacked
}