Added const dereference to ValueWithDefault

release/4.3a0
Richard Roberts 2013-11-07 21:41:19 +00:00
parent cdbdea8e67
commit c707059af1
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ namespace gtsam {
/** Operator to access the value */
T& operator*() { return value; }
/** Operator to access the value */
const T& operator*() const { return value; }
/** Implicit conversion allows use in if statements for bool type, etc. */
operator T() const { return value; }
};