Related to #28280 (review), the CI build had a Sonar warning, namely:
“std::move” should not be called on an object of a type with neither move constructor nor move-assignment operator.
Added defaulted move constructor and move assignment operator to CCoinsCacheEntry
.
And to make sure the mentioned Sonar warnings aren’t triggered by CI anymore, I’ve modernized the call-site minimally.
Based on comments I’ve also added explicit special member functions to Coin
.