diff --git a/cc/google/fhir/json/json_sax_handler.cc b/cc/google/fhir/json/json_sax_handler.cc index ba1061ea23a..be90907145c 100644 --- a/cc/google/fhir/json/json_sax_handler.cc +++ b/cc/google/fhir/json/json_sax_handler.cc @@ -293,7 +293,7 @@ class JsonSaxHandler { // `actual_token` received and `expected_token` if exists. void UpdateError( const std::string& actual_token, - const absl::optional& expected_token = absl::nullopt) { + const absl::optional& expected_token = std::nullopt) { std::string error_message = absl::StrFormat("Unexpected `%s`", actual_token); if (expected_token) {