zpp_bits: Failed to compile serialization of std::queue
zpp_bits version: 4.4.10
The simplified code:
class SoaBase {
public:
constexpr static auto serialize(auto &archive, SoaBase &self) {
return archive(self.recycled_indexes_);
}
std::queue<uint32_t> recycled_indexes_;
};
The error message:
C:\Libraries\zpp_bits\zpp_bits.h(1378): error C2672: 'zpp::bits::access::visit_members': no matching overloaded function found
C:\Libraries\zpp_bits\zpp_bits.h(2524): note: see reference to function template instantiation 'decltype(auto) zpp::bits::visit_members<std::queue<uint32_t,std::deque<uint32_t,std::allocator<std::seed_seq::result_type>>>&,zpp::bits::in<_ReturnType,zpp::bits::options::alloc_limit<1073741824>>::serialize_one::<lambda_1>>(_T0,_T1 &&)' being compiled
with
[
_T0=std::queue<uint32_t,std::deque<uint32_t,std::allocator<std::seed_seq::result_type>>> &,
_T1=zpp::bits::in<_ReturnType,zpp::bits::options::alloc_limit<1073741824>>::serialize_one::<lambda_1>
]
...
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (11 by maintainers)
@fenghou1st check this on 19.32 as well - https://github.com/eyalz800/zpp_bits/pull/93