From b446850f942199836f71696467a65214157616bb Mon Sep 17 00:00:00 2001 From: Evan Teran Date: Fri, 17 Jan 2025 12:22:11 -0500 Subject: [PATCH] fixing a slightly incorrect conversion from `boost::get` to `std::get` --- Interpreter/DataValue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Interpreter/DataValue.h b/Interpreter/DataValue.h index 69133784..69e7157c 100644 --- a/Interpreter/DataValue.h +++ b/Interpreter/DataValue.h @@ -141,8 +141,8 @@ inline bool is_array(const DataValue &dv) { inline std::string to_string(const DataValue &dv) { - if (auto n = std::get(dv.value)) { - return std::to_string(n); + if (auto n = std::get_if(&dv.value)) { + return std::to_string(*n); } return std::get(dv.value); }