2
0
mirror of https://github.com/boostorg/pfr.git synced 2026-01-19 04:22:13 +00:00

Use BOOST_PFR_USE_CPP17 macro instead of copypasted check, fix copyright dates, drop unnecessary dependencies in core17_generated.hpp

This commit is contained in:
Antony Polukhin
2017-01-15 10:49:56 +03:00
parent bea67d5078
commit 191184a422
48 changed files with 76 additions and 72 deletions

View File

@@ -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 <boost/pfr/detail/config.hpp>
#if BOOST_PFR_USE_CPP17
# error C++17 is required for this header.
#endif
#include <boost/pfr/core.hpp>
#include <boost/pfr/detail/sequence_tuple.hpp>
#include <boost/pfr/detail/fields_count.hpp>
namespace boost { namespace pfr { namespace detail {
@@ -69,7 +71,7 @@ using as_tuple_t = decltype( ::boost::pfr::detail::as_tuple(std::declval<T&>())
}}} // namespace boost::pfr::detail
#endif // BOOST_PFR_CORE17_GENERATED_HPP
#endif // BOOST_PFR_DETAIL_CORE17_GENERATED_HPP
"""
############################################################################################################################