diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-09-18 16:35:15 (GMT) |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2009-09-18 16:35:15 (GMT) |
commit | 9f894c2b36e83e9414b3369f9a4974644d843d8d (patch) | |
tree | 560b2cb3cf39be738fc81b3487caf997a3dbe840 /include/gtest/gtest-death-test.h | |
parent | f43e4ff3ad12ace9d423cc3ce02feadb8f24fe67 (diff) | |
download | googletest-9f894c2b36e83e9414b3369f9a4974644d843d8d.zip googletest-9f894c2b36e83e9414b3369f9a4974644d843d8d.tar.gz googletest-9f894c2b36e83e9414b3369f9a4974644d843d8d.tar.bz2 |
Makes gtest compile cleanly with MSVC's warning 4511 & 4512 (copy ctor /
assignment operator cannot be generated) enabled.
Diffstat (limited to 'include/gtest/gtest-death-test.h')
-rw-r--r-- | include/gtest/gtest-death-test.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gtest/gtest-death-test.h b/include/gtest/gtest-death-test.h index 677e1e1..b72745c 100644 --- a/include/gtest/gtest-death-test.h +++ b/include/gtest/gtest-death-test.h @@ -181,6 +181,9 @@ class ExitedWithCode { explicit ExitedWithCode(int exit_code); bool operator()(int exit_status) const; private: + // No implementation - assignment is unsupported. + void operator=(const ExitedWithCode& other); + const int exit_code_; }; |