*: add "noexcept" to many, many function prototypes
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
#include <string.h>
|
||||
|
||||
StaticSocketAddress &
|
||||
StaticSocketAddress::operator=(SocketAddress other)
|
||||
StaticSocketAddress::operator=(SocketAddress other) noexcept
|
||||
{
|
||||
size = std::min(other.GetSize(), GetCapacity());
|
||||
memcpy(&address, other.GetAddress(), size);
|
||||
|
||||
Reference in New Issue
Block a user