mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Moved definitions inside TINS_IS_CXX11 into header files.
This commit is contained in:
13
src/pdu.cpp
13
src/pdu.cpp
@@ -40,19 +40,6 @@ PDU::PDU(PDU *next_pdu) : _inner_pdu(next_pdu) {
|
||||
|
||||
}
|
||||
|
||||
#if TINS_IS_CXX11
|
||||
PDU::PDU(PDU &&rhs) noexcept
|
||||
: _inner_pdu(0)
|
||||
{
|
||||
std::swap(_inner_pdu, rhs._inner_pdu);
|
||||
}
|
||||
|
||||
PDU& PDU::operator=(PDU &&rhs) noexcept {
|
||||
std::swap(_inner_pdu, rhs._inner_pdu);
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
PDU::PDU(const PDU &other) : _inner_pdu(0) {
|
||||
copy_inner_pdu(other);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user