Skip to content

Commit

Permalink
Remove unnecessary ::template
Browse files Browse the repository at this point in the history
Fixes #166.
  • Loading branch information
foonathan committed Sep 12, 2024
1 parent 1dbea79 commit cdf334c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/type_safe/integer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
#if defined(TYPE_SAFE_IMPORT_STD_MODULE)
import std;
#else
#include <functional>
#include <iosfwd>
#include <limits>
#include <type_traits>
# include <functional>
# include <iosfwd>
# include <limits>
# include <type_traits>
#endif

#include <type_safe/arithmetic_policy.hpp>
Expand Down Expand Up @@ -190,14 +190,14 @@ class integer
{
static_assert(std::is_signed<integer_type>::value,
"cannot call unary minus on unsigned integer");
return integer(Policy::template do_multiplication(value_, integer_type(-1)));
return integer(Policy::do_multiplication(value_, integer_type(-1)));
}

/// \effects Increments the integer by one.
/// \group increment
TYPE_SAFE_FORCE_INLINE integer& operator++()
{
value_ = Policy::template do_addition(value_, integer_type(1));
value_ = Policy::do_addition(value_, integer_type(1));
return *this;
}

Expand All @@ -213,7 +213,7 @@ class integer
/// \group decrement
TYPE_SAFE_FORCE_INLINE integer& operator--()
{
value_ = Policy::template do_subtraction(value_, integer_type(1));
value_ = Policy::do_subtraction(value_, integer_type(1));
return *this;
}

Expand All @@ -232,7 +232,7 @@ class integer
* \param 1 \
* \exclude */ \
template <typename T, typename = detail::enable_safe_integer_conversion<T, integer_type>> \
TYPE_SAFE_FORCE_INLINE integer& operator Op(const T& other) \
TYPE_SAFE_FORCE_INLINE integer& operator Op(const T & other) \
{ \
return *this Op integer<T, Policy>(other); \
} \
Expand Down

0 comments on commit cdf334c

Please sign in to comment.