Skip to content

Commit

Permalink
replace std::nullopt
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikeyann committed Nov 14, 2022
1 parent 6fbd8ac commit bea7fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/io/utilities/parsing_utils.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ __host__ __device__ std::optional<T> parse_numeric(char const* begin,
if (exponent != 0) { value *= exp10(double(exponent * exponent_sign)); }
}
}
if (!all_digits_valid) { return std::nullopt; }
if (!all_digits_valid) { return std::optional<T>{}; }

return value * sign;
}
Expand Down

0 comments on commit bea7fc3

Please sign in to comment.