Fix compilation with gcc 4.7
This commit is contained in:
parent
380e5fd99f
commit
05baa4b0e4
1 changed files with 2 additions and 2 deletions
|
@ -154,12 +154,12 @@ AssDialogue *paste_over(wxWindow *parent, std::vector<bool>& pasteOverOptions, A
|
|||
return old_line;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
template<typename T>
|
||||
T get_value(boost::ptr_vector<AssDialogueBlock> 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<AssDialogueBlockOverride>()) {
|
||||
for (auto const& tag : ovr->Tags | reversed) {
|
||||
if (tag.Name == tag_name || tag.Name == alt)
|
||||
return tag.Params[0].Get<T>(initial);
|
||||
return tag.Params[0].template Get<T>(initial);
|
||||
}
|
||||
}
|
||||
return initial;
|
||||
|
|
Loading…
Reference in a new issue