You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use C++ Resk SDK headers along gtest headers, I get a slew of errors in gtest that are something along the lines of this:
/usr/include/gtest/internal/gtest-internal.h:961:54: error: declaration of ‘rhs’ as array of references
inline bool ArrayEq(const T(&lhs)[N], const U(&rhs)[N]) {
^
/usr/include/gtest/internal/gtest-internal.h: In function ‘bool testing::internal::ArrayEq(...)’:
/usr/include/gtest/internal/gtest-internal.h:962:28: error: ‘lhs’ was not declared in this scope
return internal::ArrayEq(lhs, N, rhs);
^
/usr/include/gtest/internal/gtest-internal.h:962:36: error: ‘rhs’ was not declared in this scope
return internal::ArrayEq(lhs, N, rhs);
^
/usr/include/gtest/internal/gtest-internal.h: At global scope:
/usr/include/gtest/internal/gtest-internal.h:1001:40: error: variable or field ‘CopyArray’ declared void
inline void CopyArray(const T(&from)[N], U(*to)[N]) {
^
/usr/include/gtest/internal/gtest-internal.h:1001:23: error: expected primary-expression before ‘const’
inline void CopyArray(const T(&from)[N], U(*to)[N]) {
^
which only hit if the C++ Rest SDK headers are included before the gtest headers. If I put the gtest headers at the top, then all is fine. Has anyone else encountered this?
I thought the source might be a sneaky #define somewhere, but I haven't been able to find the source yet.
The text was updated successfully, but these errors were encountered:
When I try to use C++ Resk SDK headers along gtest headers, I get a slew of errors in gtest that are something along the lines of this:
which only hit if the C++ Rest SDK headers are included before the gtest headers. If I put the gtest headers at the top, then all is fine. Has anyone else encountered this?
I thought the source might be a sneaky #define somewhere, but I haven't been able to find the source yet.
The text was updated successfully, but these errors were encountered: