Fix compilation.

This commit is contained in:
Chao Shen 2018-02-05 09:34:39 +08:00
parent 217d238c78
commit 093dbac30c
2 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ struct IndexFuncRef {
: loc(loc), is_implicit(is_implicit) {} : loc(loc), is_implicit(is_implicit) {}
std::tuple<IndexFuncId, Range, bool> ToTuple() const { std::tuple<IndexFuncId, Range, bool> ToTuple() const {
return {id, loc, is_implicit}; return std::make_tuple(id, loc, is_implicit);
} }
bool operator==(const IndexFuncRef& o) { return ToTuple() == o.ToTuple(); } bool operator==(const IndexFuncRef& o) { return ToTuple() == o.ToTuple(); }
bool operator!=(const IndexFuncRef& o) { return !(*this == o); } bool operator!=(const IndexFuncRef& o) { return !(*this == o); }

View File

@ -116,7 +116,7 @@ struct SymbolRef {
: idx(idx), role(role), loc(loc) {} : idx(idx), role(role), loc(loc) {}
std::tuple<SymbolIdx, SymbolRole, QueryLocation> ToTuple() const { std::tuple<SymbolIdx, SymbolRole, QueryLocation> ToTuple() const {
return {idx, role, loc}; return std::make_tuple(idx, role, loc);
} }
bool operator==(const SymbolRef& o) const { return ToTuple() == o.ToTuple(); } bool operator==(const SymbolRef& o) const { return ToTuple() == o.ToTuple(); }
bool operator!=(const SymbolRef& o) const { return !(*this == o); } bool operator!=(const SymbolRef& o) const { return !(*this == o); }
@ -137,7 +137,7 @@ struct QueryFuncRef {
: id_(id), loc(loc), is_implicit(is_implicit) {} : id_(id), loc(loc), is_implicit(is_implicit) {}
std::tuple<QueryFuncId, QueryLocation, bool> ToTuple() const { std::tuple<QueryFuncId, QueryLocation, bool> ToTuple() const {
return {id_, loc, is_implicit}; return std::make_tuple(id_, loc, is_implicit);
} }
bool operator==(const QueryFuncRef& o) const { bool operator==(const QueryFuncRef& o) const {
return ToTuple() == o.ToTuple(); return ToTuple() == o.ToTuple();