diff options
author | Abseil Team <absl-team@google.com> | 2023-06-27 18:14:33 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-06-27 18:17:00 (GMT) |
commit | f269e15c5cafa4ba7f4b543e0c395646bbbbd32d (patch) | |
tree | 5a477f55d220ade87076b3ae9fc8826a94017190 /googletest/include | |
parent | 8e32de89cfe725dc9c084044b71e9c13246049c4 (diff) | |
download | googletest-f269e15c5cafa4ba7f4b543e0c395646bbbbd32d.zip googletest-f269e15c5cafa4ba7f4b543e0c395646bbbbd32d.tar.gz googletest-f269e15c5cafa4ba7f4b543e0c395646bbbbd32d.tar.bz2 |
Resolve an issue where the resolution of `operator<<` overloads would attempt to instantiate the incomplete `testing::internal::Secret` type.
PiperOrigin-RevId: 543799815
Change-Id: Ic0a4f48d825bef26cb8cc74d8a0117b3a5ef3f14
Diffstat (limited to 'googletest/include')
-rw-r--r-- | googletest/include/gtest/internal/gtest-port.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index 8b66714..5221540 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -925,9 +925,11 @@ using std::tuple_size; namespace internal { // A secret type that Google Test users don't know about. It has no -// definition on purpose. Therefore it's impossible to create a +// accessible constructors on purpose. Therefore it's impossible to create a // Secret object, which is what we want. -class Secret; +class Secret { + Secret(const Secret&) = delete; +}; // A helper for suppressing warnings on constant condition. It just // returns 'condition'. |