diff --git a/include/boost/pfr/detail/stdarray.hpp b/include/boost/pfr/detail/stdarray.hpp index 0f802e4..f97920e 100644 --- a/include/boost/pfr/detail/stdarray.hpp +++ b/include/boost/pfr/detail/stdarray.hpp @@ -13,18 +13,27 @@ #if !defined(BOOST_PFR_INTERFACE_UNIT) #include -#include +#if BOOST_PFR_CORE_NAME_ENABLED +# include +#endif #include // metaprogramming stuff #endif namespace boost { namespace pfr { namespace detail { +#if BOOST_PFR_CORE_NAME_ENABLED template constexpr auto make_stdarray_from_tietuple(const T& t, std::index_sequence) noexcept { return std::array{ boost::pfr::detail::sequence_tuple::get(t)... }; } +#else +template +constexpr auto make_stdarray_from_tietuple(const T&, std::index_sequence) noexcept { + return nullptr; +} +#endif }}} // namespace boost::pfr::detail