diff --git a/aegisub/src/command/edit.cpp b/aegisub/src/command/edit.cpp index 57f6b22b1..41d28e713 100644 --- a/aegisub/src/command/edit.cpp +++ b/aegisub/src/command/edit.cpp @@ -154,12 +154,12 @@ AssDialogue *paste_over(wxWindow *parent, std::vector& pasteOverOptions, A return old_line; } -template +template T get_value(boost::ptr_vector const& blocks, int blockn, T initial, std::string const& tag_name, std::string alt = "") { for (auto ovr : blocks | sliced(0, blockn + 1) | reversed | agi::of_type()) { for (auto const& tag : ovr->Tags | reversed) { if (tag.Name == tag_name || tag.Name == alt) - return tag.Params[0].Get(initial); + return tag.Params[0].template Get(initial); } } return initial;