Add return value to transaction::visit
This commit is contained in:
parent
44e7a8cb46
commit
bfa3e71393
1 changed files with 9 additions and 5 deletions
|
|
@ -87,16 +87,20 @@ namespace graphene { namespace chain {
|
||||||
|
|
||||||
/// visit all operations
|
/// visit all operations
|
||||||
template<typename Visitor>
|
template<typename Visitor>
|
||||||
void visit( Visitor&& visitor )
|
vector<typename Visitor::result_type> visit( Visitor&& visitor )
|
||||||
{
|
{
|
||||||
|
vector<typename Visitor::result_type> results;
|
||||||
for( auto& op : operations )
|
for( auto& op : operations )
|
||||||
op.visit( std::forward<Visitor>( visitor ) );
|
results.push_back(op.visit( std::forward<Visitor>( visitor ) ));
|
||||||
|
return results;
|
||||||
}
|
}
|
||||||
template<typename Visitor>
|
template<typename Visitor>
|
||||||
void visit( Visitor&& visitor )const
|
vector<typename Visitor::result_type> visit( Visitor&& visitor )const
|
||||||
{
|
{
|
||||||
|
vector<typename Visitor::result_type> results;
|
||||||
for( auto& op : operations )
|
for( auto& op : operations )
|
||||||
op.visit( std::forward<Visitor>( visitor ) );
|
results.push_back(op.visit( std::forward<Visitor>( visitor ) ));
|
||||||
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
void get_required_authorities( flat_set<account_id_type>& active, flat_set<account_id_type>& owner, vector<authority>& other )const;
|
void get_required_authorities( flat_set<account_id_type>& active, flat_set<account_id_type>& owner, vector<authority>& other )const;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue