diff options
author | Rico Antonio Felix <ricoantoniofelix@yahoo.com> | 2015-06-21 10:26:45 -0400 |
---|---|---|
committer | Rico Antonio Felix <ricoantoniofelix@yahoo.com> | 2015-06-21 10:26:45 -0400 |
commit | 84957742b8f84e8590bd9372c5a9e02256dfa669 (patch) | |
tree | 475fdf79a5809ee7d8077bbe2e7f9641d85e3b24 /include/value.h | |
parent | adff07c8fc97bf154903ba25bfbfab9df3daae6a (diff) |
Refactored operator*=(X&, Php::Value) to use C++ style cast to clarify
intent
Diffstat (limited to 'include/value.h')
-rw-r--r-- | include/value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/value.h b/include/value.h index 96f4488..e3050fb 100644 --- a/include/value.h +++ b/include/value.h @@ -1240,7 +1240,7 @@ X &operator+=(X &x, const Php::Value &value) { return x += static_cast<X>(value) template <typename X, typename std::enable_if<std::is_integral<X>::value>::type* = nullptr> X &operator-=(X &x, const Php::Value &value) { return x -= static_cast<X>(value); } template <typename X, typename std::enable_if<std::is_integral<X>::value>::type* = nullptr> -X &operator*=(X &x, const Php::Value &value) { return x *= (X)value; } +X &operator*=(X &x, const Php::Value &value) { return x *= static_cast<X>(value); } template <typename X, typename std::enable_if<std::is_integral<X>::value>::type* = nullptr> X &operator/=(X &x, const Php::Value &value) { return x /= (X)value; } template <typename X, typename std::enable_if<std::is_integral<X>::value>::type* = nullptr> |