diff --git a/interface/Types.h b/interface/Types.h index a83bfb7..f436df5 100644 --- a/interface/Types.h +++ b/interface/Types.h @@ -15,8 +15,7 @@ namespace Framework { if (condition) { return tree[branch_name].write(); } else { - static T foo; - return foo; + return tree[branch_name].transient_write(); } } }