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()); } //------------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------------