From 4074e5fc5614e6545e6b56ceb4fc2275c06d174e Mon Sep 17 00:00:00 2001 From: Rico Antonio Felix Date: Sun, 21 Jun 2015 10:25:03 -0400 Subject: Refactored operator+=(X&, Php::Value) to use C++ style cast to clarify intent --- include/value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/value.h b/include/value.h index 8b5c72b..12f0c4d 100644 --- a/include/value.h +++ b/include/value.h @@ -1236,7 +1236,7 @@ PHPCPP_EXPORT std::ostream &operator<<(std::ostream &stream, const Value &value) * (arrays, objects, etc) */ template ::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(value); } template ::value>::type* = nullptr> X &operator-=(X &x, const Php::Value &value) { return x -= (X)value; } template ::value>::type* = nullptr> -- cgit v1.2.3