X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..9466e4aa8c3bf7fa8124a022715843546e4e0753:/include/xbt/range.hpp diff --git a/include/xbt/range.hpp b/include/xbt/range.hpp index 5c20a9c866..be1e7e8628 100644 --- a/include/xbt/range.hpp +++ b/include/xbt/range.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2016. The SimGrid Team. +/* Copyright (c) 2016-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -17,7 +17,7 @@ template class Range { public: Range() : begin_(), end_() {} Range(T begin, T end) : begin_(std::move(begin)), end_(std::move(end)) {} - Range(T value) : begin_(value), end_(value + 1) {} + explicit Range(T value) : begin_(value), end_(value + 1) {} T& begin() { return begin_; } T& end() { return end_; } const T& begin() const { return begin_; }