summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/internal/gtest-internal.h
diff options
context:
space:
mode:
authorChris Kennelly <ckennelly@google.com>2022-07-07 16:18:16 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-07-07 16:18:52 (GMT)
commite009c3d3dcb522c21ea83984dac6064a6399d3f6 (patch)
treeb8eacf3934acec8f86bc4cce7ec37444bbc92940 /googletest/include/gtest/internal/gtest-internal.h
parent4219e7254cb8c473f57f6065bd13d1520d7b708f (diff)
downloadgoogletest-e009c3d3dcb522c21ea83984dac6064a6399d3f6.zip
googletest-e009c3d3dcb522c21ea83984dac6064a6399d3f6.tar.gz
googletest-e009c3d3dcb522c21ea83984dac6064a6399d3f6.tar.bz2
Enable heterogeneous lookup for RegisteredTestsMap.
PiperOrigin-RevId: 459529190 Change-Id: I6b29693000023b3562990742f27a98cc279b6452
Diffstat (limited to 'googletest/include/gtest/internal/gtest-internal.h')
-rw-r--r--googletest/include/gtest/internal/gtest-internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/include/gtest/internal/gtest-internal.h b/googletest/include/gtest/internal/gtest-internal.h
index 9b04e4c..fff148c 100644
--- a/googletest/include/gtest/internal/gtest-internal.h
+++ b/googletest/include/gtest/internal/gtest-internal.h
@@ -57,6 +57,7 @@
#include <string.h>
#include <cstdint>
+#include <functional>
#include <iomanip>
#include <limits>
#include <map>
@@ -631,7 +632,7 @@ class GTEST_API_ TypedTestSuitePState {
const char* registered_tests);
private:
- typedef ::std::map<std::string, CodeLocation> RegisteredTestsMap;
+ typedef ::std::map<std::string, CodeLocation, std::less<>> RegisteredTestsMap;
bool registered_;
RegisteredTestsMap registered_tests_;