Hamcrest-Qt  0.0.1
Hamcrest matchers for C++/Qt
 All Classes Namespaces Functions
areequal_p.h
1 #ifndef HAMCRESTQT_AREEQUAL_P_H
2 #define HAMCRESTQT_AREEQUAL_P_H
3 
4 namespace HamcrestQt {
5 
6 template <typename T>
7 inline bool AreEqual(const T &actual, const T &expected)
8 {
9  return actual == expected;
10 }
11 
12 inline bool AreEqual(const char *actual, const char *expected)
13 {
14  return ::strcmp(actual, expected) == 0;
15 }
16 
17 } // namespace HamcrestQt
18 
19 #endif // HAMCRESTQT_AREEQUAL_P_H