summaryrefslogtreecommitdiffstats
path: root/googletest/include
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2019-11-19 16:57:57 (GMT)
committerGennadiy Civil <misterg@google.com>2019-11-20 19:16:45 (GMT)
commit4bf466236dbe1db812fab9264d800175eec1cd24 (patch)
tree87fcc9d798f07707fa35cc3b79e0598314c0eef9 /googletest/include
parent50cfbb726b26700d143ce5bb55c0b5e86de7a1e6 (diff)
downloadgoogletest-4bf466236dbe1db812fab9264d800175eec1cd24.zip
googletest-4bf466236dbe1db812fab9264d800175eec1cd24.tar.gz
googletest-4bf466236dbe1db812fab9264d800175eec1cd24.tar.bz2
Googletest export
Add a breadcrumb about nullopt comparison near the Optional() matcher. Also add a note about how otherwise-spurious 'Eq()' may be needed in some cases. Without this, something like Field(&MyStruct::optional_field_without_equals_equals, absl::nullopt) doesn't work - it converts the nullopt to an optional<> of the non-equalable type, and fails to select the operator==(optional<>, nullopt_t) overload. The Eq() lets the type persist later into the match. PiperOrigin-RevId: 281305519
Diffstat (limited to 'googletest/include')
0 files changed, 0 insertions, 0 deletions