From e866ae7197f99604efe3be3c3f2e4870db03640c Mon Sep 17 00:00:00 2001 From: Hideaki Tai Date: Tue, 20 Oct 2020 19:15:01 +0900 Subject: [PATCH] fixed packet size is always zero #8 --- Artnet.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Artnet.h b/Artnet.h index ca326bd..fddfc0f 100644 --- a/Artnet.h +++ b/Artnet.h @@ -166,6 +166,10 @@ namespace arx public: +#if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11 +#else + Sender_() { packet.resize(PACKET_SIZE); } +#endif virtual ~Sender_() {} void net(const uint8_t n) { target_net = n & 0x7F; } @@ -270,6 +274,11 @@ namespace arx public: +#if ARX_HAVE_LIBSTDCPLUSPLUS >= 201103L // Have libstdc++11 +#else + Receiver_() { packet.resize(PACKET_SIZE); } +#endif + virtual ~Receiver_() {} bool parse()