diff --git a/doc/pfr.qbk b/doc/pfr.qbk index b20e48f..ea092d9 100644 --- a/doc/pfr.qbk +++ b/doc/pfr.qbk @@ -1,7 +1,7 @@ [library Boost.Precise and Flat Reflection [quickbook 1.6] [version 1.0] - [copyright 2016 Antony Polukhin] + [copyright 2016-2017 Antony Polukhin] [category Language Features Emulation] [license Distributed under the Boost Software License, Version 1.0. diff --git a/example/examples.cpp b/example/examples.cpp index fee997f..2ea059b 100644 --- a/example/examples.cpp +++ b/example/examples.cpp @@ -1,4 +1,4 @@ -// Copyright 2016 Antony Polukhin +// Copyright 2016-2017 Antony Polukhin // Distributed under the Boost Software License, Version 1.0. // (See the accompanying file LICENSE_1_0.txt @@ -159,7 +159,7 @@ void test_examples() { std::cout << "boost::pfr::flat_structure_tie(var) :\n" << var << '\n'; } -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 { //[pfr_quick_examples_ops struct test { std::string f1; std::string_view f2; }; @@ -231,7 +231,7 @@ void test_examples() { //] } -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 { bar var{'A', {777, 3.141593}}; //[pfr_quick_examples_get_1 @@ -266,7 +266,7 @@ void test_examples() { std::cout << "boost::pfr::flat_get<1>(var.f) outputs:\n" << var << '\n'; } -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 { bar var{'A', {777, 3.141593}}; //[pfr_quick_examples_structure_to_tuple @@ -286,7 +286,7 @@ void test_examples() { std::cout << "boost::pfr::flat_structure_to_tuple(var) :\n" << var << '\n'; } -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 { bar var{'A', {777, 3.141593}}; //[pfr_quick_examples_structure_tie diff --git a/include/boost/pfr.hpp b/include/boost/pfr.hpp index 3761ae4..63f6330 100644 --- a/include/boost/pfr.hpp +++ b/include/boost/pfr.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/cast_to_layout_compatible.hpp b/include/boost/pfr/detail/cast_to_layout_compatible.hpp index cc0c7ce..4e26f03 100644 --- a/include/boost/pfr/detail/cast_to_layout_compatible.hpp +++ b/include/boost/pfr/detail/cast_to_layout_compatible.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/config.hpp b/include/boost/pfr/detail/config.hpp index 3d863f1..1c61da0 100644 --- a/include/boost/pfr/detail/config.hpp +++ b/include/boost/pfr/detail/config.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) @@ -13,7 +13,7 @@ #ifndef BOOST_PFR_USE_CPP17 -# if __cplusplus > 201606L /* Oulu meeting, not the exact value */ +# ifdef __cpp_structured_bindings # define BOOST_PFR_USE_CPP17 1 # else # define BOOST_PFR_USE_CPP17 0 diff --git a/include/boost/pfr/detail/core14.hpp b/include/boost/pfr/detail/core14.hpp index 59dbd33..c85eadf 100644 --- a/include/boost/pfr/detail/core14.hpp +++ b/include/boost/pfr/detail/core14.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/core17.hpp b/include/boost/pfr/detail/core17.hpp index 3648ced..4d6d325 100644 --- a/include/boost/pfr/detail/core17.hpp +++ b/include/boost/pfr/detail/core17.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/core17_generated.hpp b/include/boost/pfr/detail/core17_generated.hpp index 26da89b..cc3ba62 100644 --- a/include/boost/pfr/detail/core17_generated.hpp +++ b/include/boost/pfr/detail/core17_generated.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) @@ -8,16 +8,18 @@ //////////////// This is an auto generated header. Modify pfr/misc/generate_cpp17.py instead. //////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -#ifndef BOOST_PFR_CORE17_GENERATED_HPP -#define BOOST_PFR_CORE17_GENERATED_HPP - +#ifndef BOOST_PFR_DETAIL_CORE17_GENERATED_HPP +#define BOOST_PFR_DETAIL_CORE17_GENERATED_HPP #pragma once -#if __cplusplus < 201606L /* Oulu meeting, not the exact value */ +#include + +#if BOOST_PFR_USE_CPP17 # error C++17 is required for this header. #endif -#include +#include +#include namespace boost { namespace pfr { namespace detail { @@ -1024,5 +1026,5 @@ using as_tuple_t = decltype( ::boost::pfr::detail::as_tuple(std::declval()) }}} // namespace boost::pfr::detail -#endif // BOOST_PFR_CORE17_GENERATED_HPP +#endif // BOOST_PFR_DETAIL_CORE17_GENERATED_HPP diff --git a/include/boost/pfr/detail/detectors.hpp b/include/boost/pfr/detail/detectors.hpp index 177e8e3..a7adb30 100644 --- a/include/boost/pfr/detail/detectors.hpp +++ b/include/boost/pfr/detail/detectors.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/fields_count.hpp b/include/boost/pfr/detail/fields_count.hpp index e6b7a26..222cce0 100644 --- a/include/boost/pfr/detail/fields_count.hpp +++ b/include/boost/pfr/detail/fields_count.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/for_each_field_impl.hpp b/include/boost/pfr/detail/for_each_field_impl.hpp index 55d9b2d..ff20284 100644 --- a/include/boost/pfr/detail/for_each_field_impl.hpp +++ b/include/boost/pfr/detail/for_each_field_impl.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/functional.hpp b/include/boost/pfr/detail/functional.hpp index 68100ee..2e2f6e7 100644 --- a/include/boost/pfr/detail/functional.hpp +++ b/include/boost/pfr/detail/functional.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/io.hpp b/include/boost/pfr/detail/io.hpp index 008124f..3002b39 100644 --- a/include/boost/pfr/detail/io.hpp +++ b/include/boost/pfr/detail/io.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/sequence_tuple.hpp b/include/boost/pfr/detail/sequence_tuple.hpp index 2b25362..026ad7e 100644 --- a/include/boost/pfr/detail/sequence_tuple.hpp +++ b/include/boost/pfr/detail/sequence_tuple.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/size_array.hpp b/include/boost/pfr/detail/size_array.hpp index 76ceee0..8e20957 100644 --- a/include/boost/pfr/detail/size_array.hpp +++ b/include/boost/pfr/detail/size_array.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/detail/stdtuple.hpp b/include/boost/pfr/detail/stdtuple.hpp index 0651098..5299d65 100644 --- a/include/boost/pfr/detail/stdtuple.hpp +++ b/include/boost/pfr/detail/stdtuple.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/flat.hpp b/include/boost/pfr/flat.hpp index 246baa6..70c6419 100644 --- a/include/boost/pfr/flat.hpp +++ b/include/boost/pfr/flat.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/flat/core.hpp b/include/boost/pfr/flat/core.hpp index 72d6a6f..31f23f4 100644 --- a/include/boost/pfr/flat/core.hpp +++ b/include/boost/pfr/flat/core.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/flat/functions_for.hpp b/include/boost/pfr/flat/functions_for.hpp index dd90e79..0ae37a8 100644 --- a/include/boost/pfr/flat/functions_for.hpp +++ b/include/boost/pfr/flat/functions_for.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/flat/functors.hpp b/include/boost/pfr/flat/functors.hpp index 9e3868c..5400a30 100644 --- a/include/boost/pfr/flat/functors.hpp +++ b/include/boost/pfr/flat/functors.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/flat/global_ops.hpp b/include/boost/pfr/flat/global_ops.hpp index f9dac8a..e05fbd3 100644 --- a/include/boost/pfr/flat/global_ops.hpp +++ b/include/boost/pfr/flat/global_ops.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/flat/io.hpp b/include/boost/pfr/flat/io.hpp index 4675b71..d32d4f7 100644 --- a/include/boost/pfr/flat/io.hpp +++ b/include/boost/pfr/flat/io.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/flat/ops.hpp b/include/boost/pfr/flat/ops.hpp index b41a771..bab3e07 100644 --- a/include/boost/pfr/flat/ops.hpp +++ b/include/boost/pfr/flat/ops.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/flat/tuple_size.hpp b/include/boost/pfr/flat/tuple_size.hpp index 16ac7db..4890768 100644 --- a/include/boost/pfr/flat/tuple_size.hpp +++ b/include/boost/pfr/flat/tuple_size.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/precise.hpp b/include/boost/pfr/precise.hpp index 28f122a..e017516 100644 --- a/include/boost/pfr/precise.hpp +++ b/include/boost/pfr/precise.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/precise/core.hpp b/include/boost/pfr/precise/core.hpp index 1d77a48..9e8e2a8 100644 --- a/include/boost/pfr/precise/core.hpp +++ b/include/boost/pfr/precise/core.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) @@ -16,7 +16,7 @@ #include #include -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 # include #else # include diff --git a/include/boost/pfr/precise/functions_for.hpp b/include/boost/pfr/precise/functions_for.hpp index 2f037aa..95ae60a 100644 --- a/include/boost/pfr/precise/functions_for.hpp +++ b/include/boost/pfr/precise/functions_for.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/precise/functors.hpp b/include/boost/pfr/precise/functors.hpp index e2dfcb5..71fc039 100644 --- a/include/boost/pfr/precise/functors.hpp +++ b/include/boost/pfr/precise/functors.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) @@ -30,7 +30,7 @@ namespace detail { constexpr std::size_t fields_count_min = detail::min_size(fields_count_lhs, fields_count_rhs); typedef Visitor<0, fields_count_min> visitor_t; -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 return visitor_t::cmp(detail::as_tuple(x), detail::as_tuple(y)); #else bool result = true; @@ -245,7 +245,7 @@ template struct hash { /// \rcast14 std::size_t operator()(const T& x) const { constexpr std::size_t fields_count = detail::fields_count>(); -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 return detail::hash_impl<0, fields_count>::compute(detail::as_tuple(x)); #else std::size_t result = 0; diff --git a/include/boost/pfr/precise/global_ops.hpp b/include/boost/pfr/precise/global_ops.hpp index 069d1da..6f64ae1 100644 --- a/include/boost/pfr/precise/global_ops.hpp +++ b/include/boost/pfr/precise/global_ops.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/precise/io.hpp b/include/boost/pfr/precise/io.hpp index 6e5315f..0f23a57 100644 --- a/include/boost/pfr/precise/io.hpp +++ b/include/boost/pfr/precise/io.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) @@ -17,7 +17,7 @@ #include #include -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 # include #else # include @@ -41,7 +41,7 @@ template void write(std::basic_ostream& out, const T& value) { constexpr std::size_t fields_count = detail::fields_count>(); out << '{'; -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 detail::print_impl<0, fields_count>::print(out, detail::as_tuple(value)); #else ::boost::pfr::detail::for_each_field_dispatcher( @@ -83,7 +83,7 @@ void read(std::basic_istream& in, T& value) { in >> parenthis; if (parenthis != '{') in.setstate(std::basic_istream::failbit); -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 detail::read_impl<0, fields_count>::read(in, detail::as_tuple(value)); #else ::boost::pfr::detail::for_each_field_dispatcher( diff --git a/include/boost/pfr/precise/ops.hpp b/include/boost/pfr/precise/ops.hpp index 503ffd9..2e927e3 100644 --- a/include/boost/pfr/precise/ops.hpp +++ b/include/boost/pfr/precise/ops.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/include/boost/pfr/precise/tuple_size.hpp b/include/boost/pfr/precise/tuple_size.hpp index d854a27..d15cf67 100644 --- a/include/boost/pfr/precise/tuple_size.hpp +++ b/include/boost/pfr/precise/tuple_size.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/misc/generate_cpp17.py b/misc/generate_cpp17.py index 7d19ad8..7284b35 100644 --- a/misc/generate_cpp17.py +++ b/misc/generate_cpp17.py @@ -13,7 +13,7 @@ import string # Skipping some letters that mey produce keywords or are hard to read ascii_letters = string.ascii_letters.replace("o", "").replace("O", "").replace("i", "").replace("I", "") -PROLOGUE = """// Copyright (c) 2016 Antony Polukhin +PROLOGUE = """// Copyright (c) 2016-2017 Antony Polukhin // // 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) @@ -23,16 +23,18 @@ PROLOGUE = """// Copyright (c) 2016 Antony Polukhin //////////////// This is an auto generated header. Modify pfr/misc/generate_cpp17.py instead. //////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -#ifndef BOOST_PFR_CORE17_GENERATED_HPP -#define BOOST_PFR_CORE17_GENERATED_HPP - +#ifndef BOOST_PFR_DETAIL_CORE17_GENERATED_HPP +#define BOOST_PFR_DETAIL_CORE17_GENERATED_HPP #pragma once -#if __cplusplus < 201606L /* Oulu meeting, not the exact value */ +#include + +#if BOOST_PFR_USE_CPP17 # error C++17 is required for this header. #endif -#include +#include +#include namespace boost { namespace pfr { namespace detail { @@ -69,7 +71,7 @@ using as_tuple_t = decltype( ::boost::pfr::detail::as_tuple(std::declval()) }}} // namespace boost::pfr::detail -#endif // BOOST_PFR_CORE17_GENERATED_HPP +#endif // BOOST_PFR_DETAIL_CORE17_GENERATED_HPP """ ############################################################################################################################ diff --git a/test/common/functions_for.cpp b/test/common/functions_for.cpp index 3190e71..5e070df 100644 --- a/test/common/functions_for.cpp +++ b/test/common/functions_for.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/common/global_ops.cpp b/test/common/global_ops.cpp index ddf00d0..bd21684 100644 --- a/test/common/global_ops.cpp +++ b/test/common/global_ops.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/common/ops.cpp b/test/common/ops.cpp index 2fff4e9..d244655 100644 --- a/test/common/ops.cpp +++ b/test/common/ops.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/common/read_write.cpp b/test/common/read_write.cpp index d1ed7b7..0245317 100644 --- a/test/common/read_write.cpp +++ b/test/common/read_write.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) @@ -116,7 +116,7 @@ int main() { "{1, 2, 3, 4, {with_operator}}" ); -#if __cplusplus >= 201606L /* Oulu meeting, not the exact value */ +#if BOOST_PFR_USE_CPP17 struct test4 { int f0; std::string f1; diff --git a/test/common/std_interactions.cpp b/test/common/std_interactions.cpp index b3f55c9..4436ecd 100644 --- a/test/common/std_interactions.cpp +++ b/test/common/std_interactions.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/common/test_tuple_sizes_on.cpp b/test/common/test_tuple_sizes_on.cpp index a1f40b7..0a0f895 100644 --- a/test/common/test_tuple_sizes_on.cpp +++ b/test/common/test_tuple_sizes_on.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/flat/core.cpp b/test/flat/core.cpp index c930b9c..9e279c6 100644 --- a/test/flat/core.cpp +++ b/test/flat/core.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/flat/flat_for_each_field.cpp b/test/flat/flat_for_each_field.cpp index 9f3381c..ace9e5c 100644 --- a/test/flat/flat_for_each_field.cpp +++ b/test/flat/flat_for_each_field.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/flat/flat_tuple_size.cpp b/test/flat/flat_tuple_size.cpp index 9cc2978..5f662b5 100644 --- a/test/flat/flat_tuple_size.cpp +++ b/test/flat/flat_tuple_size.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/flat/flat_tuple_size_on_bitfields.cpp b/test/flat/flat_tuple_size_on_bitfields.cpp index 508da47..9642718 100644 --- a/test/flat/flat_tuple_size_on_bitfields.cpp +++ b/test/flat/flat_tuple_size_on_bitfields.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/flat/flat_tuple_size_on_non_aggregate.cpp b/test/flat/flat_tuple_size_on_non_aggregate.cpp index 75dd2ae..115605f 100644 --- a/test/flat/flat_tuple_size_on_non_aggregate.cpp +++ b/test/flat/flat_tuple_size_on_non_aggregate.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/precise/bitfields.cpp b/test/precise/bitfields.cpp index b2f9ea4..224a318 100644 --- a/test/precise/bitfields.cpp +++ b/test/precise/bitfields.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/precise/for_each_field.cpp b/test/precise/for_each_field.cpp index 3e9cf66..1be81ea 100644 --- a/test/precise/for_each_field.cpp +++ b/test/precise/for_each_field.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/precise/non_aggregate.cpp b/test/precise/non_aggregate.cpp index 30249a6..f9a4123 100644 --- a/test/precise/non_aggregate.cpp +++ b/test/precise/non_aggregate.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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) diff --git a/test/precise/tuple_size.cpp b/test/precise/tuple_size.cpp index 61763c7..dc3c74d 100644 --- a/test/precise/tuple_size.cpp +++ b/test/precise/tuple_size.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Antony Polukhin +// Copyright (c) 2016-2017 Antony Polukhin // // 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)