diff options
-rw-r--r-- | icespider/core/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/icespider/core/util.h b/icespider/core/util.h index 638660c..075f237 100644 --- a/icespider/core/util.h +++ b/icespider/core/util.h @@ -5,7 +5,7 @@ namespace IceUtil { template <typename T, typename TF> - T operator/(const IceUtil::Optional<T> & o, const TF & tf) + auto operator/(const IceUtil::Optional<T> & o, const TF & tf) -> decltype(tf()) { if (o) return *o; return tf(); |