[range.h] Make ctr explicit

This commit is contained in:
Joe Thornber 2013-05-28 11:48:12 +01:00
parent 82324d1d27
commit bde2b2b40d

View File

@ -12,7 +12,7 @@ namespace base {
public:
typedef boost::optional<T> maybe;
range(maybe begin = maybe(), maybe end = maybe())
explicit range(maybe begin = maybe(), maybe end = maybe())
: begin_(begin),
end_(end) {
}