Skip to content

Commit

Permalink
Merge pull request #249 from blinkseb/fix_condition_branches
Browse files Browse the repository at this point in the history
Ensure references are unique when creating a conditional branch
  • Loading branch information
OlivierBondu authored Feb 28, 2017
2 parents d7b4256 + c1943eb commit a140949
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions interface/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ namespace Framework {
if (condition) {
return tree[branch_name].write<T>();
} else {
static T foo;
return foo;
return tree[branch_name].transient_write<T>();
}
}
}

0 comments on commit a140949

Please sign in to comment.