提交 906ba00f 编写于 作者: J Jonathan Giszczak

GCC compatibility.

上级 6ea416b9
...@@ -152,7 +152,7 @@ class apply_context { ...@@ -152,7 +152,7 @@ class apply_context {
const auto& idx = context.db.get_index< chainbase::get_index_type<ObjectType>::type, contracts::by_secondary >(); const auto& idx = context.db.get_index< chainbase::get_index_type<ObjectType>::type, contracts::by_secondary >();
auto itr = idx.lower_bound( boost::make_tuple( tab->id, secondary ) ); auto itr = idx.lower_bound( boost::make_tuple( tab->id, secondary ) );
if( itr == idx.end() ) return -1; if( itr == idx.end() ) return -1;
if( itr->t_id != tab.id ) return -1; if( itr->t_id != tab->id ) return -1;
itr_cache.cache_table( *tab ); itr_cache.cache_table( *tab );
return itr_cache.add( *itr ); return itr_cache.add( *itr );
...@@ -165,7 +165,7 @@ class apply_context { ...@@ -165,7 +165,7 @@ class apply_context {
const auto& idx = context.db.get_index< chainbase::get_index_type<ObjectType>::type, contracts::by_secondary >(); const auto& idx = context.db.get_index< chainbase::get_index_type<ObjectType>::type, contracts::by_secondary >();
auto itr = idx.upper_bound( boost::make_tuple( tab->id, secondary ) ); auto itr = idx.upper_bound( boost::make_tuple( tab->id, secondary ) );
if( itr == idx.end() ) return -1; if( itr == idx.end() ) return -1;
if( itr->t_id != tab.id ) return -1; if( itr->t_id != tab->id ) return -1;
itr_cache.cache_table( *tab ); itr_cache.cache_table( *tab );
return itr_cache.add( *itr ); return itr_cache.add( *itr );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册