Skip to content

Commit cdf334c

Browse files
committed
Remove unnecessary ::template
Fixes #166.
1 parent 1dbea79 commit cdf334c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

include/type_safe/integer.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
#if defined(TYPE_SAFE_IMPORT_STD_MODULE)
99
import std;
1010
#else
11-
#include <functional>
12-
#include <iosfwd>
13-
#include <limits>
14-
#include <type_traits>
11+
# include <functional>
12+
# include <iosfwd>
13+
# include <limits>
14+
# include <type_traits>
1515
#endif
1616

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

196196
/// \effects Increments the integer by one.
197197
/// \group increment
198198
TYPE_SAFE_FORCE_INLINE integer& operator++()
199199
{
200-
value_ = Policy::template do_addition(value_, integer_type(1));
200+
value_ = Policy::do_addition(value_, integer_type(1));
201201
return *this;
202202
}
203203

@@ -213,7 +213,7 @@ class integer
213213
/// \group decrement
214214
TYPE_SAFE_FORCE_INLINE integer& operator--()
215215
{
216-
value_ = Policy::template do_subtraction(value_, integer_type(1));
216+
value_ = Policy::do_subtraction(value_, integer_type(1));
217217
return *this;
218218
}
219219

@@ -232,7 +232,7 @@ class integer
232232
* \param 1 \
233233
* \exclude */ \
234234
template <typename T, typename = detail::enable_safe_integer_conversion<T, integer_type>> \
235-
TYPE_SAFE_FORCE_INLINE integer& operator Op(const T& other) \
235+
TYPE_SAFE_FORCE_INLINE integer& operator Op(const T & other) \
236236
{ \
237237
return *this Op integer<T, Policy>(other); \
238238
} \

0 commit comments

Comments
 (0)