summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Paczkowski (trzeci.eu) <kontakt@trzeci.eu>2019-12-20 08:51:35 (GMT)
committerGitHub <noreply@github.com>2019-12-20 08:51:35 (GMT)
commitbf31ed376ab1ae181dfa2bb0383f7710229b0d14 (patch)
tree156dea6fc8f967ae12bcd06f43dde5df0a34ea50
parentcc05a3ca014bdc25eaf987672004b36fa1ceeb36 (diff)
downloadgoogletest-bf31ed376ab1ae181dfa2bb0383f7710229b0d14.zip
googletest-bf31ed376ab1ae181dfa2bb0383f7710229b0d14.tar.gz
googletest-bf31ed376ab1ae181dfa2bb0383f7710229b0d14.tar.bz2
Make move operation noexcept.
-rw-r--r--googletest/include/gtest/internal/gtest-port.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h
index 1a7f80c..0543da5 100644
--- a/googletest/include/gtest/internal/gtest-port.h
+++ b/googletest/include/gtest/internal/gtest-port.h
@@ -682,12 +682,12 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
// A macro to disallow move operator=
// This should be used in the private: declarations for a class.
#define GTEST_DISALLOW_MOVE_ASSIGN_(type) \
- type& operator=(type &&) = delete
+ type& operator=(type &&) noexcept = delete
// A macro to disallow move constructor and operator=
// This should be used in the private: declarations for a class.
#define GTEST_DISALLOW_MOVE_AND_ASSIGN_(type) \
- type(type &&) = delete; \
+ type(type &&) noexcept = delete; \
GTEST_DISALLOW_MOVE_ASSIGN_(type)
// Tell the compiler to warn about unused return values for functions declared