express: explicitly declare defaulted Datagram copy/move ctor/assign
Fixes #329
This commit is contained in:
parent
3d49986ce2
commit
8d84c58d73
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue