Skip to content

Commit

Permalink
Ooga booga
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Aug 19, 2024
1 parent 55dad98 commit 6956d14
Showing 1 changed file with 7 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,35 +38,24 @@ class PhotonPipelineResult : public PhotonPipelineResult_PhotonStruct {
using Base = PhotonPipelineResult_PhotonStruct;

public:
explicit PhotonPipelineResult(Base&& data) : Base(data) {
fmt::println("Hello, from a base-move ctor");
}
explicit PhotonPipelineResult(Base&& data) : Base(data) {}

// Don't forget to deal with our ntRecieveTimestamp
PhotonPipelineResult(const PhotonPipelineResult& other)
: Base(other), ntReceiveTimestamp(other.ntReceiveTimestamp) {
fmt::println("Hello, from a const-copy ctor");
}
: Base(other), ntReceiveTimestamp(other.ntReceiveTimestamp) {}
PhotonPipelineResult(PhotonPipelineResult& other)
: Base(other), ntReceiveTimestamp(other.ntReceiveTimestamp) {
fmt::println("Hello, from a copy ctor");
}

: Base(other), ntReceiveTimestamp(other.ntReceiveTimestamp) {}
PhotonPipelineResult(PhotonPipelineResult&& other)
: Base(std::move(other)),
ntReceiveTimestamp(std::move(other.ntReceiveTimestamp)) {
fmt::println("Hello, from a move ctor");
}
auto operator=(PhotonPipelineResult& other) {
fmt::println("Hello from operator=");
ntReceiveTimestamp(std::move(other.ntReceiveTimestamp)) {}
auto operator=(const PhotonPipelineResult& other) {
Base::operator=(other);
ntReceiveTimestamp = other.ntReceiveTimestamp;
return *this;
}
auto operator=(PhotonPipelineResult other) {
fmt::println("Hello from operator=");
Base::operator=(other);
auto operator=(PhotonPipelineResult&& other) {
ntReceiveTimestamp = other.ntReceiveTimestamp;
Base::operator=(std::move(other));
return *this;
}

Expand Down

0 comments on commit 6956d14

Please sign in to comment.