mirror of
https://github.com/panda3d/panda3d.git
synced 2026-02-20 14:19:25 -06:00
express: explicitly declare defaulted Datagram copy/move ctor/assign
Fixes #329
This commit is contained in:
@@ -40,9 +40,13 @@ PUBLISHED:
|
||||
INLINE Datagram();
|
||||
INLINE Datagram(const void *data, size_t size);
|
||||
INLINE explicit Datagram(vector_uchar data);
|
||||
|
||||
Datagram(const Datagram ©) = default;
|
||||
Datagram(Datagram &&from) noexcept = default;
|
||||
virtual ~Datagram();
|
||||
|
||||
Datagram &operator = (const Datagram ©) = default;
|
||||
Datagram &operator = (Datagram &&from) noexcept = default;
|
||||
|
||||
virtual void clear();
|
||||
void dump_hex(ostream &out, unsigned int indent=0) const;
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@ def test_iterator(datagram_small):
|
||||
dgi = core.DatagramIterator(dg)
|
||||
verify(dgi)
|
||||
|
||||
|
||||
# This tests the copy constructor:
|
||||
@pytest.mark.xfail
|
||||
def test_copy(datagram_small):
|
||||
dg, verify = datagram_small
|
||||
|
||||
@@ -105,7 +105,7 @@ def test_copy(datagram_small):
|
||||
dgi = core.DatagramIterator(dg2)
|
||||
verify(dgi)
|
||||
|
||||
@pytest.mark.xfail
|
||||
|
||||
def test_assign(datagram_small):
|
||||
dg, verify = datagram_small
|
||||
|
||||
|
||||
Reference in New Issue
Block a user