@ -147,11 +147,73 @@ constexpr typename SFixed<Integer, Fraction>::FractionType SFixed<Integer, Fract
//
//
template < unsigned Integer , unsigned Fraction >
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator IntegerType ( ) const
constexpr SFixed < Integer , Fraction > : : operator char ( ) const
{
{
return this - > getInteger ( ) ;
return this - > getInteger ( ) ;
}
}
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator unsigned char ( ) const
{
return this - > getInteger ( ) ;
}
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator signed char ( ) const
{
return this - > getInteger ( ) ;
}
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator unsigned short int ( ) const
{
return this - > getInteger ( ) ;
}
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator signed short int ( ) const
{
return this - > getInteger ( ) ;
}
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator unsigned int ( ) const
{
return this - > getInteger ( ) ;
}
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator signed int ( ) const
{
return this - > getInteger ( ) ;
}
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator unsigned long int ( ) const
{
return this - > getInteger ( ) ;
}
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator signed long int ( ) const
{
return this - > getInteger ( ) ;
}
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator unsigned long long int ( ) const
{
return this - > getInteger ( ) ;
}
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator signed long long int ( ) const
{
return this - > getInteger ( ) ;
}
template < unsigned Integer , unsigned Fraction >
template < unsigned Integer , unsigned Fraction >
constexpr SFixed < Integer , Fraction > : : operator float ( ) const
constexpr SFixed < Integer , Fraction > : : operator float ( ) const
{
{