From be6cef93c479056169ab499d03ea212ff22db435 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 7 Jun 2010 09:49:17 -0400 Subject: A further simplification of -V and -X With -X COMM, all values are computed in terms of COMM, regardless. With -V, only secondary commodities will ever be computed, never primaries. Further, if a secondary commodities has an associated price, the valuation is done in terms of that price's commodity. --- src/value.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index cffd6dee..cb3b024a 100644 --- a/src/value.h +++ b/src/value.h @@ -476,8 +476,7 @@ public: void in_place_unreduce(); // exists for efficiency's sake // Return the "market value" of a given value at a specific time. - value_t value(const bool primary_only = false, - const optional& moment = none, + value_t value(const optional& moment = none, const optional& in_terms_of = none) const; value_t price() const; -- cgit v1.2.3