From bea7fc3aca340fd1e55c1de5ffaa8571261fa933 Mon Sep 17 00:00:00 2001 From: Karthikeyan Natarajan Date: Tue, 15 Nov 2022 04:57:54 +0530 Subject: [PATCH] replace std::nullopt --- cpp/src/io/utilities/parsing_utils.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/io/utilities/parsing_utils.cuh b/cpp/src/io/utilities/parsing_utils.cuh index 6c5c817eb02..a78700db484 100644 --- a/cpp/src/io/utilities/parsing_utils.cuh +++ b/cpp/src/io/utilities/parsing_utils.cuh @@ -237,7 +237,7 @@ __host__ __device__ std::optional 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{}; } return value * sign; }