Flatten serial.h type constructor pad()

This commit is contained in:
Kp 2016-08-28 22:41:46 +00:00
parent f8568d1d5f
commit 0a2676315d

View file

@ -307,10 +307,7 @@ typename T::maximum_size_type get_minimum_size(...);
}
template <std::size_t amount, uint8_t value = 0xcc>
static inline detail::pad_type<amount, value> pad()
{
return {};
}
using pad = detail::pad_type<amount, value>;
#define DEFINE_SERIAL_UDT_TO_MESSAGE(TYPE, NAME, MEMBERLIST) \
DEFINE_SERIAL_CONST_UDT_TO_MESSAGE(TYPE, NAME, MEMBERLIST) \