diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2013-02-28 23:46:07 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2013-02-28 23:46:07 +0000 |
commit | 6a036a5c8c7613e888fad39d92fc3fd84a96fbc7 (patch) | |
tree | 6758198925bed7d581f7f9d81580a726592236e8 /include/gtest/internal/gtest-port.h | |
parent | b3ed14ac17f8f1d218a6f8dfaa18d45621cd33ff (diff) | |
download | googletest-6a036a5c8c7613e888fad39d92fc3fd84a96fbc7.tar.gz googletest-6a036a5c8c7613e888fad39d92fc3fd84a96fbc7.tar.bz2 googletest-6a036a5c8c7613e888fad39d92fc3fd84a96fbc7.zip |
Fixes a nasty issue in gtest's template instantiation.
Diffstat (limited to 'include/gtest/internal/gtest-port.h')
-rw-r--r-- | include/gtest/internal/gtest-port.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index c79f12a2..f78994a0 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -32,6 +32,10 @@ // Low-level types and utilities for porting Google Test to various // platforms. They are subject to change without notice. DO NOT USE // THEM IN USER CODE. +// +// This file is fundamental to Google Test. All other Google Test source +// files are expected to #include this. Therefore, it cannot #include +// any other Google Test header. #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_PORT_H_ @@ -784,6 +788,11 @@ class Message; 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 +// Secret object, which is what we want. +class Secret; + // The GTEST_COMPILE_ASSERT_ macro can be used to verify that a compile time // expression is true. For example, you could use it to verify the // size of a static array: |