From b6b1805c8c12a7bf0bccc97e1e586cb742e9051a Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 4 Mar 2019 20:29:49 +0200 Subject: [PATCH] Add --- include/boost/mp11/integer_sequence.hpp | 1 + include/boost/mp11/integral.hpp | 1 + include/boost/mp11/version.hpp | 16 ++++++++++++++++ test/Jamfile | 15 +++++++++++++++ test/algorithm_version.cpp | 17 +++++++++++++++++ test/bind_version.cpp | 17 +++++++++++++++++ test/function_version.cpp | 17 +++++++++++++++++ test/integer_sequence_version.cpp | 17 +++++++++++++++++ test/integral_version.cpp | 17 +++++++++++++++++ test/list_version.cpp | 17 +++++++++++++++++ test/map_version.cpp | 17 +++++++++++++++++ test/mp11_version.cpp | 17 +++++++++++++++++ test/mpl_version.cpp | 17 +++++++++++++++++ test/set_version.cpp | 17 +++++++++++++++++ test/tuple_version.cpp | 17 +++++++++++++++++ test/utility_version.cpp | 17 +++++++++++++++++ test/version.cpp | 17 +++++++++++++++++ 17 files changed, 254 insertions(+) create mode 100644 include/boost/mp11/version.hpp create mode 100644 test/algorithm_version.cpp create mode 100644 test/bind_version.cpp create mode 100644 test/function_version.cpp create mode 100644 test/integer_sequence_version.cpp create mode 100644 test/integral_version.cpp create mode 100644 test/list_version.cpp create mode 100644 test/map_version.cpp create mode 100644 test/mp11_version.cpp create mode 100644 test/mpl_version.cpp create mode 100644 test/set_version.cpp create mode 100644 test/tuple_version.cpp create mode 100644 test/utility_version.cpp create mode 100644 test/version.cpp diff --git a/include/boost/mp11/integer_sequence.hpp b/include/boost/mp11/integer_sequence.hpp index 34b097e..83e2450 100644 --- a/include/boost/mp11/integer_sequence.hpp +++ b/include/boost/mp11/integer_sequence.hpp @@ -8,6 +8,7 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#include #include #if defined(__has_builtin) diff --git a/include/boost/mp11/integral.hpp b/include/boost/mp11/integral.hpp index 3e0ba19..0671673 100644 --- a/include/boost/mp11/integral.hpp +++ b/include/boost/mp11/integral.hpp @@ -8,6 +8,7 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt +#include #include #include diff --git a/include/boost/mp11/version.hpp b/include/boost/mp11/version.hpp new file mode 100644 index 0000000..5a1f21a --- /dev/null +++ b/include/boost/mp11/version.hpp @@ -0,0 +1,16 @@ +#ifndef BOOST_MP11_VERSION_HPP_INCLUDED +#define BOOST_MP11_VERSION_HPP_INCLUDED + +// Copyright 2019 Peter Dimov +// +// 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 + +// Same format as BOOST_VERSION: +// major * 100000 + minor * 100 + patch + +#define BOOST_MP11_VERSION 107000 + +#endif // #ifndef BOOST_MP11_VERSION_HPP_INCLUDED diff --git a/test/Jamfile b/test/Jamfile index ad6fb2b..7531c80 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -192,6 +192,21 @@ run mp_bind_back.cpp ; # mpl run mpl.cpp : ; +# version +run version.cpp ; +run mp11_version.cpp ; +run list_version.cpp ; +run algorithm_version.cpp ; +run integral_version.cpp ; +run utility_version.cpp ; +run function_version.cpp ; +run map_version.cpp ; +run set_version.cpp ; +run bind_version.cpp ; +run integer_sequence_version.cpp ; +run tuple_version.cpp ; +run mpl_version.cpp ; + # quick (for CI) alias quick : mp11 mp_size ; explicit quick ; diff --git a/test/algorithm_version.cpp b/test/algorithm_version.cpp new file mode 100644 index 0000000..6960803 --- /dev/null +++ b/test/algorithm_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/bind_version.cpp b/test/bind_version.cpp new file mode 100644 index 0000000..75f3d95 --- /dev/null +++ b/test/bind_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/function_version.cpp b/test/function_version.cpp new file mode 100644 index 0000000..9464a82 --- /dev/null +++ b/test/function_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/integer_sequence_version.cpp b/test/integer_sequence_version.cpp new file mode 100644 index 0000000..2ba3ffe --- /dev/null +++ b/test/integer_sequence_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/integral_version.cpp b/test/integral_version.cpp new file mode 100644 index 0000000..2ba7080 --- /dev/null +++ b/test/integral_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/list_version.cpp b/test/list_version.cpp new file mode 100644 index 0000000..9cee664 --- /dev/null +++ b/test/list_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/map_version.cpp b/test/map_version.cpp new file mode 100644 index 0000000..92925f5 --- /dev/null +++ b/test/map_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/mp11_version.cpp b/test/mp11_version.cpp new file mode 100644 index 0000000..1733266 --- /dev/null +++ b/test/mp11_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/mpl_version.cpp b/test/mpl_version.cpp new file mode 100644 index 0000000..f0d4c1b --- /dev/null +++ b/test/mpl_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/set_version.cpp b/test/set_version.cpp new file mode 100644 index 0000000..057a251 --- /dev/null +++ b/test/set_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/tuple_version.cpp b/test/tuple_version.cpp new file mode 100644 index 0000000..d4d80f5 --- /dev/null +++ b/test/tuple_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/utility_version.cpp b/test/utility_version.cpp new file mode 100644 index 0000000..64a84ea --- /dev/null +++ b/test/utility_version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +} diff --git a/test/version.cpp b/test/version.cpp new file mode 100644 index 0000000..0b8d4a5 --- /dev/null +++ b/test/version.cpp @@ -0,0 +1,17 @@ + +// Copyright 2019 Peter Dimov +// +// 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 +#include +#include + +int main() +{ + BOOST_TEST_EQ( BOOST_MP11_VERSION, BOOST_VERSION ); + return boost::report_errors(); +}