BLE: Fix Bounded constant declaration.

pull/8738/head
Vincent Coubard 2018-11-21 11:11:01 +00:00
parent 07c05917e0
commit 49f5c7f833
1 changed files with 4 additions and 4 deletions

View File

@ -83,12 +83,12 @@ struct Bounded {
/**
* The left-bound value.
*/
static const Rep MIN;
static const Rep MIN = Min;
/**
* The right-bound value.
*/
static const Rep MAX;
static const Rep MAX = Max;
private:
Rep _value;
@ -97,10 +97,10 @@ private:
/* ---------------------- Static variable initialization -------------------- */
template<typename T, T Min, T Max>
const T Bounded<T, Min, Max>::MIN = Min;
const T Bounded<T, Min, Max>::MIN;
template<typename T, T Min, T Max>
const T Bounded<T, Min, Max>::MAX = Max;
const T Bounded<T, Min, Max>::MAX;
} // namespace ble