{
////////////////////////////////////////////////////////////////////
- template <typename T, T _Val>
- class fixed : public lengthable
+ template <typename T>
+ class fixed : public length_<sizeof(T)>
{
public:
- static const int length = sizeof(T);
-
template <typename _It, typename _Param>
bool analyze(_It& it, _Param& param)
{
}*/
};
- /////////////////////////////////////////////////////////////
-
- template <unsigned char _ByteCode>
- class unibyte : public fixed_numeric<unsigned char, _ByteCode> {};
-
- template <char _Val>
- class fixed_char : public fixed_numeric<char, _Val> {};
- template <short _Val>
- class fixed_short : public fixed_numeric<short, _Val> {};
- template <int _Val>
- class fixed_int : public fixed_numeric<int, _Val> {};
- template <long _Val>
- class fixed_long : public fixed_numeric<long, _Val> {};
-
- template <unsigned char _Val>
- class fixed_uchar : public fixed_numeric<unsigned char, _Val> {};
- template <unsigned short _Val>
- class fixed_ushort : public fixed_numeric<unsigned short, _Val> {};
- template <unsigned int _Val>
- class fixed_uint : public fixed_numeric<unsigned int, _Val> {};
- template <unsigned long _Val>
- class fixed_ulong : public fixed_numeric<unsigned long, _Val> {};
-
- typedef unibyte<0> zeroterm;
-
////////////////////////////////////////////////////////////////////
}
}