diff --git a/include/swift/Basic/Located.h b/include/swift/Basic/Located.h index 79721d257b041..6b3430b365124 100644 --- a/include/swift/Basic/Located.h +++ b/include/swift/Basic/Located.h @@ -30,9 +30,8 @@ namespace swift { /// the ClangImporter needs to keep track of where imports were originally written. /// Located makes it easy to do so while making the code more readable, compared to /// using `std::pair`. -template +template struct Located { - /// The main item whose source location is being tracked. T Item; @@ -45,13 +44,13 @@ struct Located { SWIFT_DEBUG_DUMP; void dump(raw_ostream &os) const; - - template - friend bool operator ==(const Located &lhs, const Located &rhs) { - return lhs.Item == rhs.Item && lhs.Loc == rhs.Loc; - } }; +template +bool operator ==(const Located &lhs, const Located &rhs) { + return lhs.Item == rhs.Item && lhs.Loc == rhs.Loc; +} + } // end namespace swift namespace llvm {