Open AnsiV01 opened 7 hours ago
Hi @AnsiV01 , it appears that the move operation is failing. Could you translate the error message to English?
@liuzicheng1987 Sure:
Severity Code Description Line File Project Suppression State Details
Error C2280 'fixed_containers::FixedVector<std::pair<Attributes,__int64>,3,fixed_containers::customize::SequenceContainerAbortChecking<T,3>> &fixed_containers::FixedVector<T,3,fixed_containers::customize::SequenceContainerAbortChecking<T,3>>::operator =(const fixed_containers::FixedVector<T,3,fixed_containers::customize::SequenceContainerAbortChecking<T,3>> &)': attempting to reference a deleted function
with
[
T=std::pair<Attributes,__int64>
] 121 E:\ecpp\ecpp\_third\rfl\parsing\ViewReaderWithDefault.hpp Common
Hello
I am working on a mini-game where I am using reflect-cpp as a parser for json files and more. At some point I needed to implement support for a custom
FixedVector
class from the fixed_container library (https://github.com/teslamotors/fixed-containers). And here I ran into a problem, because the compiler cannot handle this class if I add aDefaultIfMissing
processor when usingrfl::json::(read/load)
. Below MRE.The compiler (MSVC) reports a problem with the use of the deleted function:
Błąd C2280 „fixed_containers::FixedVector<std::pair<Attributes,__int64>,3,fixed_containers::customize::SequenceContainerAbortChecking<T,3>> &fixed_containers::FixedVector<T,3,fixed_containers::customize::SequenceContainerAbortChecking<T,3>>::operator =(const fixed_containers::FixedVector<T,3,fixed_containers::customize::SequenceContainerAbortChecking<T,3>> &)”: próba odwania do usuniętej funkcji with [ T=std::pair<Attributes,__int64> ] 121 E:\ecpp\ecpp\_third\rfl\parsing\ViewReaderWithDefault.hpp
And when I click on the error it redirects me to this code from the
rfl\parsing\ViewReaderWithDefault.hpp
:My question is whether there is a workaround or fix for this situation, or whether this is a problem that cannot be circumvented by the way the
fixed_container
library is implemented?Thanks for any information.