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

Improve diagnostic for attempt to use get_name with non-external (#146)

Co-authored-by: Antony Polukhin <antoshkka@gmail.com>
This commit is contained in:
Denis Mikhailov
2023-11-26 09:52:17 +01:00
committed by GitHub
parent 294a4976bd
commit c695aa0b32
4 changed files with 17 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ using namespace boost::pfr;
template <class T, std::size_t I>
inline constexpr auto no_check_stored_name_of_field = detail::name_of_field_impl<T,
detail::make_clang_wrapper(std::addressof(detail::sequence_tuple::get<I>(
detail::tie_as_tuple(detail::fake_object<T>)
detail::tie_as_tuple(detail::fake_object<T>())
)))
>();