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

17 lines
491 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 <vector>
using namespace boost::histogram;
int main() {
std::vector<axis::variant<axis::integer<>>> v(1, axis::integer<>(0, 2));
auto a = make_histogram(v);
auto i = std::vector<int>(1);
a(i); // fails, because tuple is intentionally not unpacked
}