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

GCC-10 fixes

This commit is contained in:
Antony Polukhin
2020-07-06 17:17:00 +03:00
parent dc814c7e7f
commit 63b5f1f791
2 changed files with 2 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ template <class T, std::size_t N>
struct is_aggregate_initializable_n {
template <std::size_t ...I>
static constexpr bool is_not_constructible_n(std::index_sequence<I...>) noexcept {
#if defined(__cpp_aggregate_paren_init) || (defined(__GNUC__) && __GNUC__ >= 10)
#if defined(__cpp_aggregate_paren_init)
typedef size_t_<N> fields_count_tag;
// ====================> Boost.PFR: Compile time error at this point means that the type T is not

View File

@@ -29,6 +29,7 @@ PROLOGUE = """// Copyright (c) 2016-2020 Antony Polukhin
#pragma once
#include <boost/pfr/detail/config.hpp>
#include <boost/pfr/detail/size_t_.hpp>
#if !BOOST_PFR_USE_CPP17
# error C++17 is required for this header.