GolosChain / golos

Socio-economic mediablockchain
https://developers.golos.io
Other
59 stars 36 forks source link

database_api.cpp:2284:76: error: no match for ‘operator++’ (operand type is ‘const value_type {aka const golos ::chain::vesting_delegation_object}’) #317

Closed bitphage closed 6 years ago

bitphage commented 6 years ago

Failed to compile 351b61fd2b1afbe9b0792e71564d1a6460f2e25d

/usr/local/src/golos/libraries/application/database_api.cpp:2284:76: error: no match for ‘operator++’ (operand type is ‘const value_type {aka const golos::chain::vesting_delegation_object}’)
                      result.size() < limit && itr != delegation_idx.end(); ++itr) {
                                                                            ^
/usr/local/src/golos/libraries/application/database_api.cpp:2285:28: error: base operand of ‘->’ has non-pointer type ‘const value_type {aka const golos::chain::vesting_delegation_object}’
                     if (itr->delegator == account) {
                            ^
/usr/local/src/golos/libraries/application/database_api.cpp:2286:42: error: no match for ‘operator*’ (operand type is ‘const value_type {aka const golos::chain::vesting_delegation_object}’)
                         result.push_back(*itr);
                                          ^
nemothenoone commented 6 years ago

Fixed with 92bc76b2aa