git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ticket 37. The true parameter changed to false in ensure_equals()
[stg.git]
/
include
/
stg
/
resetable.h
diff --git
a/include/stg/resetable.h
b/include/stg/resetable.h
index 8a6ad27c13584e04ca05c98caae867e97d18699a..a451b357326cd946c72b77ddf7b4bd57c65b1a36 100644
(file)
--- a/
include/stg/resetable.h
+++ b/
include/stg/resetable.h
@@
-50,6
+50,11
@@
public:
is_set = true;
}
}
+ void maybeSet(value_type& dest) const
+ {
+ if (is_set)
+ dest = value;
+ }
private:
value_type value;