Remove superfluous constructors (#45)

pull/51/head
Pharap 7 years ago committed by GitHub
parent 0d064ef75d
commit ff3308fd96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/FixedPoints/SFixed.h
  2. 6
      src/FixedPoints/SFixedMemberFunctions.h
  3. 1
      src/FixedPoints/UFixed.h
  4. 6
      src/FixedPoints/UFixedMemberFunctions.h

@ -64,7 +64,6 @@ public:
using Base::Base;
constexpr SFixed(void);
constexpr SFixed(const IntegerType & integer);
constexpr SFixed(const IntegerType & integer, const FractionType & fraction);
constexpr InternalType getInternal(void) const;

@ -24,12 +24,6 @@ constexpr SFixed<Integer, Fraction>::SFixed(void)
{
}
template< unsigned Integer, unsigned Fraction >
constexpr SFixed<Integer, Fraction>::SFixed(const IntegerType & integer)
: Base(RawType(static_cast<InternalType>(integer) << FractionSize))
{
}
template< unsigned Integer, unsigned Fraction >
constexpr SFixed<Integer, Fraction>::SFixed(const IntegerType & integer, const FractionType & fraction)
: Base(RawType((static_cast<InternalType>(integer) << FractionSize) | fraction))

@ -64,7 +64,6 @@ public:
using Base::Base;
constexpr UFixed(void);
constexpr UFixed(const IntegerType & integer);
constexpr UFixed(const IntegerType & integer, const FractionType & fraction);
constexpr InternalType getInternal(void) const;

@ -24,12 +24,6 @@ constexpr UFixed<Integer, Fraction>::UFixed(void)
{
}
template< unsigned Integer, unsigned Fraction >
constexpr UFixed<Integer, Fraction>::UFixed(const IntegerType & integer)
: Base(RawType(static_cast<InternalType>(integer) << FractionSize))
{
}
template< unsigned Integer, unsigned Fraction >
constexpr UFixed<Integer, Fraction>::UFixed(const IntegerType & integer, const FractionType & fraction)
: Base(RawType((static_cast<InternalType>(integer) << FractionSize) | fraction))

Loading…
Cancel
Save