Fix clang build broken in last commit

This commit is contained in:
Sebastian Messmer 2017-09-17 02:24:36 +01:00
parent 5458af7c52
commit a6592ae299

View File

@ -33,12 +33,18 @@ public:
private: private:
IdData id_; IdData id_;
friend class std::hash<IdWrapper>; friend struct std::hash<IdWrapper>;
friend class std::less<IdWrapper>; friend struct std::less<IdWrapper>;
template<class Tag2> friend bool operator==(const IdWrapper<Tag2>& lhs, const IdWrapper<Tag2>& rhs); template<class Tag2> friend bool operator==(const IdWrapper<Tag2>& lhs, const IdWrapper<Tag2>& rhs);
template<class Tag2> friend bool operator!=(const IdWrapper<Tag2>& lhs, const IdWrapper<Tag2>& rhs); template<class Tag2> friend bool operator!=(const IdWrapper<Tag2>& lhs, const IdWrapper<Tag2>& rhs);
}; };
template<class Tag>
constexpr size_t IdWrapper<Tag>::BINARY_LENGTH;
template<class Tag>
constexpr size_t IdWrapper<Tag>::STRING_LENGTH;
template<class Tag> template<class Tag>
inline IdWrapper<Tag>::IdWrapper(const IdData& id): id_(id) {} inline IdWrapper<Tag>::IdWrapper(const IdData& id): id_(id) {}