Skip to content

Commit

Permalink
Gotcha. Let older compilers understand that the PacketData copy const…
Browse files Browse the repository at this point in the history
…ructor is fine to use in an implicit noexcept subclass move constructor.
  • Loading branch information
baburton committed Dec 18, 2021
1 parent 087b708 commit 95b1a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/packet/packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -2147,7 +2147,7 @@ class PacketData {
* This constructor is provided so that \a Held can (if it wants) use
* an implicitly-declared copy or move constructor.
*/
PacketData(const PacketData&) {}
PacketData(const PacketData&) noexcept {}
/**
* Assignment operator that ignores its argument and does nothing.
* This is because \a heldBy_ stores information about the C++ type
Expand Down

0 comments on commit 95b1a26

Please sign in to comment.