From 88032d8e0f6d4bc63b97aeeab84fdc44aeab1c89 Mon Sep 17 00:00:00 2001 From: vladlosev Date: Wed, 17 Nov 2010 23:29:21 +0000 Subject: [PATCH] Adds comment clarifying the use of default-constructed matchers. --- include/gmock/gmock-matchers.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/gmock/gmock-matchers.h b/include/gmock/gmock-matchers.h index 627f3ff0..86c3db73 100644 --- a/include/gmock/gmock-matchers.h +++ b/include/gmock/gmock-matchers.h @@ -250,8 +250,9 @@ class MatcherBase { template class Matcher : public internal::MatcherBase { 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.