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

Update core.hpp

This commit is contained in:
Antony Polukhin
2026-01-06 19:17:42 +03:00
committed by GitHub
parent 24cd193eee
commit e6bc1dd9f2

View File

@@ -287,7 +287,7 @@ constexpr std::size_t index_of(M T::*mem_ptr) {
template <class T>
void operator()(const T&, std::size_t) {}
void operator()(const T& field, std::size_t idx) {
void operator()(const M& field, std::size_t idx) {
const void* filed_address = std::addressof(field);
if (target_address == filed_address) {
result = idx;