aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386>2010-11-17 23:29:21 +0000
committervladlosev <vladlosev@8415998a-534a-0410-bf83-d39667b30386>2010-11-17 23:29:21 +0000
commit88032d8e0f6d4bc63b97aeeab84fdc44aeab1c89 (patch)
tree461ad1398005d93e6055d9106a34afcfc2482c2c
parent2321b2a6757328bbf30b69af434c28dac3060b83 (diff)
downloadgoogletest-88032d8e0f6d4bc63b97aeeab84fdc44aeab1c89.tar.gz
googletest-88032d8e0f6d4bc63b97aeeab84fdc44aeab1c89.tar.bz2
googletest-88032d8e0f6d4bc63b97aeeab84fdc44aeab1c89.zip
Adds comment clarifying the use of default-constructed matchers.
-rw-r--r--include/gmock/gmock-matchers.h5
1 files 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 <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.