Fix compilation with clang

This commit is contained in:
Thomas Goyne 2014-04-15 11:08:50 -07:00
parent a141ef1264
commit 489eca221d
1 changed files with 4 additions and 0 deletions

View File

@ -162,7 +162,11 @@ struct parsed_line {
std::vector<std::unique_ptr<AssDialogueBlock>> blocks;
parsed_line(AssDialogue *line) : line(line), blocks(line->ParseTags()) { }
#ifdef _MSC_VER
parsed_line(parsed_line&& r) : line(r.line), blocks(std::move(r.blocks)) { }
#else
parsed_line(parsed_line&& r) = default;
#endif
template<typename T>
T get_value(int blockn, T initial, std::string const& tag_name, std::string alt = "") const {