# HG changeset patch # User deba # Date 1151508518 0 # Node ID f27dfd29c5c0b1b0bd01bbf04b0afe9a6eef552e # Parent ea1fa1bc3f6d27a739fb78e550b8db25348a8885 Make explicit constructors diff -r ea1fa1bc3f6d -r f27dfd29c5c0 lemon/iterable_maps.h --- a/lemon/iterable_maps.h Wed Jun 28 15:06:24 2006 +0000 +++ b/lemon/iterable_maps.h Wed Jun 28 15:28:38 2006 +0000 @@ -126,7 +126,7 @@ /// \brief Constructor of the Map with a default value. /// /// Constructor of the Map with a default value. - IterableBoolMap(const Graph& _graph, bool def = false) + explicit IterableBoolMap(const Graph& _graph, bool def = false) : Parent(_graph), graph(_graph) { for (KeyIt it(graph); it != INVALID; ++it) { Parent::set(it, array.size()); @@ -203,7 +203,7 @@ /// Creates an iterator. It iterates on the /// keys which mapped to true. /// \param _map The IterableIntMap - TrueIt(const IterableBoolMap& _map) + explicit TrueIt(const IterableBoolMap& _map) : Parent(_map.sep > 0 ? _map.array[_map.sep - 1] : INVALID), map(&_map) {} @@ -243,7 +243,7 @@ /// Creates an iterator. It iterates on the /// keys which mapped to false. /// \param _map The IterableIntMap - FalseIt(const IterableBoolMap& _map) + explicit FalseIt(const IterableBoolMap& _map) : Parent(_map.sep < (int)_map.array.size() ? _map.array.back() : INVALID), map(&_map) {}