Skip to content

Commit

Permalink
c++17
Browse files Browse the repository at this point in the history
  • Loading branch information
UkoeHB committed Feb 9, 2024
1 parent 9266787 commit 42ad774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/seraphis_main/enote_record_utils_legacy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static bool try_check_legacy_view_tag(const LegacyEnoteVariant &enote,
boost::optional<crypto::view_tag> operator()(const LegacyEnoteV5 &enote) const { return enote.view_tag; }
};

const boost::optional<crypto::view_tag> enote_view_tag{enote.visit(visitor{})};
const boost::optional<crypto::view_tag> enote_view_tag{enote.visit(visitor())};

if (!enote_view_tag)
return true; //check succeeds automatically for enotes with no view tag
Expand Down
2 changes: 1 addition & 1 deletion src/seraphis_main/tx_input_selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
//-------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 42ad774

Please sign in to comment.