Simple change that adds a typedef named value_type to BLETypedCharacteristic. This pattern is common in the STL, and it's nice because especially in C++11 you can easily get the type of a variable with decltype, and then get access to the value type.
Example usage (and reason I added it):
static_assert(sizeof(BLEShortCharacteristic::value_type) == 2, "Short must be 2 bytes");
Simple change that adds a typedef named
value_type
toBLETypedCharacteristic
. This pattern is common in the STL, and it's nice because especially in C++11 you can easily get the type of a variable withdecltype
, and then get access to the value type.Example usage (and reason I added it):