ethz-asl / eigen_checks

A repository for G-Log CHECK and GTest ASSERT and EXPECT macros for Eigen types.
30 stars 36 forks source link

can't determine template type under osx? #31

Closed markusachtelik closed 9 years ago

markusachtelik commented 9 years ago

I get the awesome error below, when using EIGEN_MATRIX_NEAR under osx. Looks like something can't deduct the template type anymore?

Any Ideas? Thanks a lot!

/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:24:49: error: reference to overloaded function could not be resolved; did you mean to call it?
        << " has " << rhs.rows() << " rows." << std::endl;
                                                ^~~~~~~~~
/Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:147:19: note: in instantiation of function template specialization
      'eigen_checks::internal::MatricesNear<Eigen::Matrix<double, 3, 3, 0, 3, 3>, Eigen::Matrix<double, 3, 3, 0, 3, 3> >' requested here
      EXPECT_TRUE(EIGEN_MATRIX_NEAR(m, n, tol));
                  ^
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:20:27: note: expanded from macro 'EIGEN_MATRIX_NEAR'
  eigen_checks::internal::MatricesNear(MatrixA, #MatrixA, MatrixB, #MatrixB, \
                          ^
/usr/local/include/gtest/gtest.h:1697:23: note: expanded from macro 'EXPECT_TRUE'
  GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
                      ^
/usr/local/include/gtest/internal/gtest-internal.h:875:34: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
      ::testing::AssertionResult(expression)) \
                                 ^
/Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:233:3: note: in instantiation of function template specialization 'checkPath<10>'
      requested here
  checkPath(vertices, segments);
  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:31:50: error: reference to overloaded function could not be resolved; did you mean to call it?
        << " cols " << rhs.cols() << " cols." << std::endl;
                                                 ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:32:51: error: reference to overloaded function could not be resolved; did you mean to call it?
    failure_reason << name_lhs << ":\n" << lhs << std::endl;
                                                  ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:33:51: error: reference to overloaded function could not be resolved; did you mean to call it?
    failure_reason << name_rhs << ":\n" << rhs << std::endl;
                                                  ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:74:51: error: reference to overloaded function could not be resolved; did you mean to call it?
    failure_reason << name_lhs << ":\n" << lhs << std::endl;
                                                  ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:75:51: error: reference to overloaded function could not be resolved; did you mean to call it?
    failure_reason << name_rhs << ":\n" << rhs << std::endl;
                                                  ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:76:57: error: reference to overloaded function could not be resolved; did you mean to call it?
    failure_reason << "Difference:\n" << (lhs - rhs) << std::endl;
                                                        ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:24:49: error: reference to overloaded function could not be resolved; did you mean to call it?
        << " has " << rhs.rows() << " rows." << std::endl;
                                                ^~~~~~~~~
/Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:148:19: note: in instantiation of function template specialization
      'eigen_checks::internal::MatricesNear<Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, -1, 1> >' requested here
      EXPECT_TRUE(EIGEN_MATRIX_NEAR(desired, actual, tol)) << "at vertex " << i << " and constraint "
                  ^
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:20:27: note: expanded from macro 'EIGEN_MATRIX_NEAR'
  eigen_checks::internal::MatricesNear(MatrixA, #MatrixA, MatrixB, #MatrixB, \
                          ^
/usr/local/include/gtest/gtest.h:1697:23: note: expanded from macro 'EXPECT_TRUE'
  GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
                      ^
/usr/local/include/gtest/internal/gtest-internal.h:875:34: note: expanded from macro 'GTEST_TEST_BOOLEAN_'
      ::testing::AssertionResult(expression)) \
                                 ^
/Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:233:3: note: in instantiation of function template specialization 'checkPath<10>'
      requested here
  checkPath(vertices, segments);
  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:31:50: error: reference to overloaded function could not be resolved; did you mean to call it?
        << " cols " << rhs.cols() << " cols." << std::endl;
                                                 ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:32:51: error: reference to overloaded function could not be resolved; did you mean to call it?
    failure_reason << name_lhs << ":\n" << lhs << std::endl;
                                                  ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:33:51: error: reference to overloaded function could not be resolved; did you mean to call it?
    failure_reason << name_rhs << ":\n" << rhs << std::endl;
                                                  ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:74:51: error: reference to overloaded function could not be resolved; did you mean to call it?
    failure_reason << name_lhs << ":\n" << lhs << std::endl;
                                                  ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:75:51: error: reference to overloaded function could not be resolved; did you mean to call it?
    failure_reason << name_rhs << ":\n" << rhs << std::endl;
                                                  ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
In file included from /Users/acmarkus/Development/catkin_ws/src/ethzasl_mav_pathplanning/mav_planning_utils/src/test/polynomial_optimization.cpp:37:
In file included from /Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/gtest.h:6:
/Users/acmarkus/Development/indigo_ws_add/src/eigen_checks/include/eigen-checks/internal/gtest-equal.h:76:57: error: reference to overloaded function could not be resolved; did you mean to call it?
    failure_reason << "Difference:\n" << (lhs - rhs) << std::endl;
                                                        ^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1020:1: note: possible target for call
endl(basic_ostream<_CharT, _Traits>& __os)
^
/Users/acmarkus/Development/indigo_ws_add/devel/include/glog/logging.h:604:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &'
      (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator<<(
                     ^
/usr/local/include/gtest/gtest-message.h:224:22: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st argument
inline std::ostream& operator <<(std::ostream& os, const Message& sb) {
                     ^
/usr/local/include/gtest/gtest-test-part.h:117:15: note: candidate function not viable: no known conversion from 'testing::AssertionResult' to 'std::ostream &' (aka 'basic_ostream<char> &') for 1st
      argument
std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
              ^
/usr/local/include/gtest/gtest.h:299:35: note: candidate template ignored: couldn't infer template argument 'T'
AssertionResult& AssertionResult::operator<<(const T& value) {
                                  ^
14 errors generated.
simonlynen commented 9 years ago

@markusachtelik I pushed a fix. Let me know if it works now off master.

markusachtelik commented 9 years ago

thanks a lot! that worked.