Fixed comparison operators for net object pointers
This commit is contained in:
parent
26d807ce87
commit
4640158343
8 changed files with 62 additions and 18 deletions
|
|
@ -64,8 +64,20 @@ namespace NetworkingObjects {
|
|||
return rawPtr;
|
||||
}
|
||||
|
||||
template <typename T> std::strong_ordering NetObjOwnerPtr<T>::operator<=>(const NetObjOwnerPtr<T>& rhs) const {
|
||||
return rawPtr <=> rhs.rawPtr;
|
||||
template <typename T> bool NetObjOwnerPtr<T>::operator!=(const NetObjOwnerPtr<T>& rhs) const {
|
||||
return rawPtr != rhs.rawPtr;
|
||||
}
|
||||
|
||||
template <typename T> bool NetObjOwnerPtr<T>::operator==(const NetObjOwnerPtr<T>& rhs) const {
|
||||
return rawPtr == rhs.rawPtr;
|
||||
}
|
||||
|
||||
template <typename T> bool NetObjOwnerPtr<T>::operator!=(const NetObjTemporaryPtr<T>& rhs) const {
|
||||
return rawPtr != rhs.get();
|
||||
}
|
||||
|
||||
template <typename T> bool NetObjOwnerPtr<T>::operator==(const NetObjTemporaryPtr<T>& rhs) const {
|
||||
return rawPtr == rhs.get();
|
||||
}
|
||||
|
||||
template <typename T> void NetObjOwnerPtr<T>::send_client_update(const std::string& channel, std::function<void(const NetObjTemporaryPtr<T>&, cereal::PortableBinaryOutputArchive&)> sendUpdateFunc) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue