From 9044bf168ab0d8d6df03034898b1e5a4cb1559e8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 May 2007 09:27:26 +0000 Subject: *** no comment *** --- src/value.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index 917f732f..f001a4aa 100644 --- a/src/value.h +++ b/src/value.h @@ -299,7 +299,7 @@ class value_t bool operator<(const value_t& val) const; //bool operator>(const value_t& val) const; - string label(optional the_type = optional()) const { + string label(optional the_type = none) const { switch (the_type ? *the_type : type) { case VOID: return "an uninitialized value"; @@ -362,9 +362,8 @@ class value_t const bool keep_tag = amount_t::keep_tag) const; value_t& add(const amount_t& amount, - const optional& cost = optional()); - value_t value(const optional& moment = - optional()) const; + const optional& cost = none); + value_t value(const optional& moment = none) const; void in_place_reduce(); value_t reduce() const { -- cgit v1.2.3