Just pass-by-value, since the reference can obfuscate the lifetime of,
for example, an automatic variable.
* @param value is the value to backtrack to.
* @return True if the future value was successully added; false otherwise
*/
-bool Node::add_future_value(struct future_value& fv)
+bool Node::add_future_value(struct future_value fv)
{
uint64_t value = fv.value;
modelclock_t expiration = fv.expiration;
* occurred previously in the stack. */
Node * get_parent() const { return parent; }
- bool add_future_value(struct future_value& fv);
+ bool add_future_value(struct future_value fv);
struct future_value get_future_value() const;
bool increment_future_value();
bool future_value_empty() const;