38 #ifndef GOOGLETEST_INCLUDE_GTEST_GTEST_ASSERTION_RESULT_H_
39 #define GOOGLETEST_INCLUDE_GTEST_GTEST_ASSERTION_RESULT_H_
44 #include <type_traits>
137 AssertionResult(
const AssertionResult& other);
143 #if defined(_MSC_VER) && (_MSC_VER < 1910 || _MSC_VER >= 1920)
154 template <
typename T>
155 explicit AssertionResult(
157 typename std::enable_if<
161 : success_(success) {}
163 #if defined(_MSC_VER) && (_MSC_VER < 1910 || _MSC_VER >= 1920)
168 AssertionResult& operator=(AssertionResult other) {
174 operator bool()
const {
return success_; }
183 const char* message()
const {
184 return message_ !=
nullptr ? message_->c_str() :
"";
187 const char* failure_message()
const {
return message(); }
190 template <
typename T>
192 AppendMessage(Message() << value);
199 ::std::ostream& (*basic_manipulator)(::std::ostream& stream)) {
200 AppendMessage(Message() << basic_manipulator);
206 void AppendMessage(
const Message& a_message) {
207 if (message_ ==
nullptr) message_ = ::std::make_unique<::std::string>();
208 message_->append(a_message.GetString().c_str());
212 void swap(AssertionResult& other);
220 std::unique_ptr< ::std::string> message_;
237 #endif // GOOGLETEST_INCLUDE_GTEST_GTEST_ASSERTION_RESULT_H_
GTEST_DISABLE_MSC_WARNINGS_POP_() TEST(LinkTest
SACADO_INLINE_FUNCTION bool operator!(const Expr< ExprT > &expr)
AssertionResult AssertionFailure()
std::ostream & operator<<(std::ostream &os, const Expr< T > &xx)
AssertionResult AssertionSuccess()
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_(warnings)