Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / histogram / test / axis_variable_fail1.cpp
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
7 #include <boost/histogram/axis/variable.hpp>
8
9 using namespace boost::histogram;
10
11 int main() {
12   // circular variable axis cannot be growing
13   (void)axis::variable<double, boost::use_default,
14                        decltype(axis::option::circular | axis::option::growth)>(
15       {1, 2, 3});
16 }