summaryrefslogtreecommitdiff
path: root/zen/optional.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/optional.h')
-rw-r--r--zen/optional.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zen/optional.h b/zen/optional.h
index a6a53103..6e54408a 100644
--- a/zen/optional.h
+++ b/zen/optional.h
@@ -45,6 +45,7 @@ public:
if (tmp.valid)
value = tmp.value;
valid = tmp.valid;
+ return *this;
}
////rvalue optimization: only basic exception safety:
bgstack15