Make one arg ctors explicit

This commit is contained in:
Thiago Marcos P. Santos
2015-07-10 19:24:32 +03:00
parent bd8210d5a1
commit 00308be140
6 changed files with 6 additions and 6 deletions

View File

@@ -73,7 +73,7 @@ void TileWorker::redoPlacement(float angle, bool collisionDebug) {
template <typename T>
struct PropertyEvaluator {
typedef T result_type;
PropertyEvaluator(float z_) : z(z_) {}
explicit PropertyEvaluator(float z_) : z(z_) {}
template <typename P, typename std::enable_if<std::is_convertible<P, T>::value, int>::type = 0>
T operator()(const P &value) const {