diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-02-09 16:42:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-09 16:42:05 (GMT) |
commit | b324a36c35c1f3397e0a6d664114980f3f7ddff8 (patch) | |
tree | 6ff499e0888f6cc6b0bc89aea9f512123780706f /googletest/docs | |
parent | 092d0885332316ca679ac77e0f8fe1f5c368fb4f (diff) | |
parent | 22a115055a34443a01a3006bc2e0c1697c29abe1 (diff) | |
download | googletest-b324a36c35c1f3397e0a6d664114980f3f7ddff8.zip googletest-b324a36c35c1f3397e0a6d664114980f3f7ddff8.tar.gz googletest-b324a36c35c1f3397e0a6d664114980f3f7ddff8.tar.bz2 |
Merge branch 'master' into assertrefs/pull/1439/head
Diffstat (limited to 'googletest/docs')
-rw-r--r-- | googletest/docs/FAQ.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/docs/FAQ.md b/googletest/docs/FAQ.md index 1a216a1..bd9526d 100644 --- a/googletest/docs/FAQ.md +++ b/googletest/docs/FAQ.md @@ -460,7 +460,7 @@ following benefits: You may still want to use `SetUp()/TearDown()` in the following rare cases: * If the tear-down operation could throw an exception, you must use `TearDown()` as opposed to the destructor, as throwing in a destructor leads to undefined behavior and usually will kill your program right away. Note that many standard libraries (like STL) may throw when exceptions are enabled in the compiler. Therefore you should prefer `TearDown()` if you want to write portable tests that work with or without exceptions. * The assertion macros throw an exception when flag `--gtest_throw_on_failure` is specified. Therefore, you shouldn't use Google Test assertions in a destructor if you plan to run your tests with this flag. - * In a constructor or destructor, you cannot make a virtual function call on this object. (You can call a method declared as virtual, but it will be statically bound.) Therefore, if you need to call a method that will be overriden in a derived class, you have to use `SetUp()/TearDown()`. + * In a constructor or destructor, you cannot make a virtual function call on this object. (You can call a method declared as virtual, but it will be statically bound.) Therefore, if you need to call a method that will be overridden in a derived class, you have to use `SetUp()/TearDown()`. ## The compiler complains "no matching function to call" when I use ASSERT\_PREDn. How do I fix it? ## |