mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 13:13:33 +08:00
StaticIf<> renamed to much more appropriate and widely known name - Select<>
This commit is contained in:
@@ -19,9 +19,9 @@ template <unsigned int BitLen>
|
||||
struct NativeFloatSelector
|
||||
{
|
||||
struct ErrorNoSuchFloat;
|
||||
typedef typename StaticIf<(sizeof(float) * 8 >= BitLen), float,
|
||||
typename StaticIf<(sizeof(double) * 8 >= BitLen), double,
|
||||
typename StaticIf<(sizeof(long double) * 8 >= BitLen), long double,
|
||||
typedef typename Select<(sizeof(float) * 8 >= BitLen), float,
|
||||
typename Select<(sizeof(double) * 8 >= BitLen), double,
|
||||
typename Select<(sizeof(long double) * 8 >= BitLen), long double,
|
||||
ErrorNoSuchFloat>::Result>::Result>::Result Type;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user