mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 02:23:35 +08:00
String-like behavior for arrays
This commit is contained in:
@@ -109,4 +109,11 @@ class IntegerSpec<1, SignednessSigned, CastMode>; // Invalid instantiation
|
||||
template <Signedness Signedness, CastMode CastMode>
|
||||
class IntegerSpec<0, Signedness, CastMode>; // Invalid instantiation
|
||||
|
||||
|
||||
template <typename T>
|
||||
struct IsIntegerSpec { enum { Result = 0 }; };
|
||||
|
||||
template <unsigned int BitLen, Signedness Signedness, CastMode CastMode>
|
||||
struct IsIntegerSpec<IntegerSpec<BitLen, Signedness, CastMode> > { enum { Result = 1 }; };
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user