mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Fix Bounded constant declaration.
parent
07c05917e0
commit
49f5c7f833
|
@ -83,12 +83,12 @@ struct Bounded {
|
||||||
/**
|
/**
|
||||||
* The left-bound value.
|
* The left-bound value.
|
||||||
*/
|
*/
|
||||||
static const Rep MIN;
|
static const Rep MIN = Min;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The right-bound value.
|
* The right-bound value.
|
||||||
*/
|
*/
|
||||||
static const Rep MAX;
|
static const Rep MAX = Max;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Rep _value;
|
Rep _value;
|
||||||
|
@ -97,10 +97,10 @@ private:
|
||||||
/* ---------------------- Static variable initialization -------------------- */
|
/* ---------------------- Static variable initialization -------------------- */
|
||||||
|
|
||||||
template<typename T, T Min, T Max>
|
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>
|
template<typename T, T Min, T Max>
|
||||||
const T Bounded<T, Min, Max>::MAX = Max;
|
const T Bounded<T, Min, Max>::MAX;
|
||||||
|
|
||||||
} // namespace ble
|
} // namespace ble
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue