From e92bcf411d2e9a55969303ba3893a017152d7c18 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 1 May 2007 04:36:49 +0000 Subject: Started using boost::optional. --- src/value.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index 0737fac1..4c6e0f18 100644 --- a/src/value.h +++ b/src/value.h @@ -435,7 +435,6 @@ class value_t return 0; } - void in_place_abs(); value_t abs() const; void in_place_cast(type_t cast_type); value_t cost() const; @@ -453,10 +452,11 @@ class value_t const bool keep_date = amount_t::keep_date, const bool keep_tag = amount_t::keep_tag) const; - value_t& add(const amount_t& amount, const amount_t * cost = NULL); + value_t& add(const amount_t& amount, + const optional& cost = optional()); value_t value(const moment_t& moment) const; - void in_place_reduce(); + void in_place_reduce(); value_t reduce() const { value_t temp(*this); temp.in_place_reduce(); -- cgit v1.2.3