diff --git a/cql3/statements/property_definitions.hh b/cql3/statements/property_definitions.hh index 6bbbe43528..5534fd9338 100644 --- a/cql3/statements/property_definitions.hh +++ b/cql3/statements/property_definitions.hh @@ -137,6 +137,10 @@ public: // Return a property value, typed as a double double get_double(sstring key, double default_value) const { auto value = get_simple(key); + return to_double(key, value, default_value); + } + + static double to_double(sstring key, std::experimental::optional value, double default_value) { if (value) { auto val = value.value(); try {