From 62df0b609b11cd9087c7a553caa2ca7cf7e1ec64 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Mon, 19 Dec 2016 10:25:53 +0100 Subject: [PATCH] disable feature not available on GCC < 5 --- fairmq/FairMQDevice.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fairmq/FairMQDevice.h b/fairmq/FairMQDevice.h index 3e1e1f4c..7401e24d 100644 --- a/fairmq/FairMQDevice.h +++ b/fairmq/FairMQDevice.h @@ -234,7 +234,8 @@ class FairMQDevice : public FairMQStateMachine, public FairMQConfigurable template inline FairMQMessagePtr NewSimpleMessage(const T& data) const { - static_assert(std::is_trivially_copyable::value, "The argument type for NewSimpleMessage has to be trivially copyable!"); + // todo: is_trivially_copyable not available on gcc < 5, workaround? + // static_assert(std::is_trivially_copyable::value, "The argument type for NewSimpleMessage has to be trivially copyable!"); T* dataCopy = new T(data); return fTransportFactory->CreateMessage(dataCopy, sizeof(T), FairMQSimpleMsgCleanup, dataCopy); }