Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:43:37

0001 // Copyright (c) 2023 Bela Schaum, X-Ryl669, Denis Mikhailov.
0002 //
0003 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 
0007 // Initial implementation by Bela Schaum, https://github.com/schaumb
0008 // The way to make it union and UB free by X-Ryl669, https://github.com/X-Ryl669
0009 //
0010 
0011 #ifndef BOOST_PFR_DETAIL_CORE_NAME14_DISABLED_HPP
0012 #define BOOST_PFR_DETAIL_CORE_NAME14_DISABLED_HPP
0013 #pragma once
0014 
0015 #include <boost/pfr/detail/config.hpp>
0016 #include <boost/pfr/detail/sequence_tuple.hpp>
0017 
0018 namespace boost { namespace pfr { namespace detail {
0019 
0020 template <class T, std::size_t I>
0021 constexpr auto get_name() noexcept {
0022     static_assert(
0023         sizeof(T) && false,
0024         "====================> Boost.PFR: Field's names extracting functionality requires C++20."
0025     );
0026 
0027     return nullptr;
0028 }
0029 
0030 template <class T>
0031 constexpr auto tie_as_names_tuple() noexcept {
0032     static_assert(
0033         sizeof(T) && false,
0034         "====================> Boost.PFR: Field's names extracting functionality requires C++20."
0035     );
0036 
0037     return detail::sequence_tuple::make_sequence_tuple();
0038 }
0039 
0040 }}} // namespace boost::pfr::detail
0041 
0042 #endif // BOOST_PFR_DETAIL_CORE_NAME14_DISABLED_HPP
0043