diff options
author | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2010-11-17 23:29:21 +0000 |
---|---|---|
committer | vladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386> | 2010-11-17 23:29:21 +0000 |
commit | 155932e92c2e52f42ef51712eb35a818cbce16fe (patch) | |
tree | 461ad1398005d93e6055d9106a34afcfc2482c2c | |
parent | d567f690a1e82a2fcac554096c614b876e9ed04f (diff) | |
download | googlemock-155932e92c2e52f42ef51712eb35a818cbce16fe.tar.gz |
Adds comment clarifying the use of default-constructed matchers.
git-svn-id: http://googlemock.googlecode.com/svn/trunk@348 8415998a-534a-0410-bf83-d39667b30386
-rw-r--r-- | include/gmock/gmock-matchers.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gmock/gmock-matchers.h b/include/gmock/gmock-matchers.h index 627f3ff..86c3db7 100644 --- a/include/gmock/gmock-matchers.h +++ b/include/gmock/gmock-matchers.h @@ -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. |