Commit 88032d8e authored by vladlosev's avatar vladlosev
Browse files

Adds comment clarifying the use of default-constructed matchers.

parent 2321b2a6
......@@ -250,8 +250,9 @@ class MatcherBase {
template <typename T>
class Matcher : public internal::MatcherBase<T> {
public:
// Constructs a null matcher. Needed for storing Matcher objects in
// STL containers.
// Constructs a null matcher. Needed for storing Matcher objects in STL
// containers. A default-constructed matcher is not yet initialized. You
// cannot use it until a valid value has been assigned to it.
Matcher() {}
// Constructs a matcher from its implementation.
......
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