From eb0bd4f998ad4a39fd0c890ee258f98fbf28972e Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 14 Dec 2021 11:18:15 -0800 Subject: [PATCH] c++options: Remove unneeded C++20 header and resolve ambiguous call. --- libgnucash/app-utils/gnc-option-impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgnucash/app-utils/gnc-option-impl.cpp b/libgnucash/app-utils/gnc-option-impl.cpp index e8aaa6ea47..6bd896595c 100644 --- a/libgnucash/app-utils/gnc-option-impl.cpp +++ b/libgnucash/app-utils/gnc-option-impl.cpp @@ -26,7 +26,6 @@ #include #include #include -#include #include extern "C" { @@ -697,7 +696,8 @@ GncOptionDateValue::deserialize(const std::string& str) noexcept auto period_str{str.substr(date_value_pos)}; if (type_str == "absolute") { - set_value(std::stoll(period_str)); + // Need a cast to disambiguate from time64. + set_value(static_cast(std::stoll(period_str))); return true; } else if (type_str == "relative ")