std::size_t getBufferSize() const { return sizeof(T); }
operator T() const
{
-//FIXME: assert turned off because smpi:Request is not seen as "trivial".
-// static_assert(std::is_trivial<T>::value, "Cannot convert non trivial type");
+ static_assert(std::is_trivial<T>::value, "Cannot convert non trivial type");
return buffer;
}
void clear() { std::memset(static_cast<void*>(&buffer), 0, sizeof(T)); }