Commit d86a723e authored by kosak's avatar kosak
Browse files

Mark the default constructor of Matcher<> explicit.

This prevents implicitly constructing a matcher from {}.
parent 9b1a944e
...@@ -321,7 +321,7 @@ class Matcher : public internal::MatcherBase<T> { ...@@ -321,7 +321,7 @@ class Matcher : public internal::MatcherBase<T> {
// Constructs a null matcher. Needed for storing Matcher objects in STL // Constructs a null matcher. Needed for storing Matcher objects in STL
// containers. A default-constructed matcher is not yet initialized. You // containers. A default-constructed matcher is not yet initialized. You
// cannot use it until a valid value has been assigned to it. // cannot use it until a valid value has been assigned to it.
Matcher() {} explicit Matcher() {} // NOLINT
// Constructs a matcher from its implementation. // Constructs a matcher from its implementation.
explicit Matcher(const MatcherInterface<T>* impl) explicit Matcher(const MatcherInterface<T>* impl)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment