From 42ad774496c4e287a61b7c3705309d81759f67e7 Mon Sep 17 00:00:00 2001 From: koe Date: Fri, 9 Feb 2024 13:59:21 -0600 Subject: [PATCH] c++17 --- src/seraphis_main/enote_record_utils_legacy.cpp | 2 +- src/seraphis_main/tx_input_selection.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/seraphis_main/enote_record_utils_legacy.cpp b/src/seraphis_main/enote_record_utils_legacy.cpp index a037a202f0..84743cc536 100644 --- a/src/seraphis_main/enote_record_utils_legacy.cpp +++ b/src/seraphis_main/enote_record_utils_legacy.cpp @@ -103,7 +103,7 @@ static bool try_check_legacy_view_tag(const LegacyEnoteVariant &enote, boost::optional operator()(const LegacyEnoteV5 &enote) const { return enote.view_tag; } }; - const boost::optional enote_view_tag{enote.visit(visitor{})}; + const boost::optional enote_view_tag{enote.visit(visitor())}; if (!enote_view_tag) return true; //check succeeds automatically for enotes with no view tag diff --git a/src/seraphis_main/tx_input_selection.cpp b/src/seraphis_main/tx_input_selection.cpp index 4b63b7fda4..d9189b5773 100644 --- a/src/seraphis_main/tx_input_selection.cpp +++ b/src/seraphis_main/tx_input_selection.cpp @@ -67,7 +67,7 @@ static InputSelectionType input_selection_type(const ContextualRecordVariant &co InputSelectionType operator()(const SpContextualEnoteRecordV1&) const { return InputSelectionType::SERAPHIS; } }; - return contextual_enote_record.visit(visitor{}); + return contextual_enote_record.visit(visitor()); } //------------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------------