testGroup in develop doesn't compile on Linux - gcc 4.8

Issue #239 resolved
Chris Beall created an issue

Jenkins strangely didn't pick up this new test in the last pull request, so it didn't catch this.

/home/cbeall3/git/gtsam/gtsam/base/tests/testGroup.cpp: In static member function ‘static void gtsam::traits<gtsam::DirectProduct<gtsam::Symmetric<2>, gtsam::Symmetric<3> > >::Print(const Dih6&, const string&)’:
/home/cbeall3/git/gtsam/gtsam/base/tests/testGroup.cpp:119:15: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const Dih6 {aka const gtsam::DirectProduct<gtsam::Symmetric<2>, gtsam::Symmetric<3> >}’)
     cout << s << m << endl;
               ^
/home/cbeall3/git/gtsam/gtsam/base/tests/testGroup.cpp:119:15: note: candidates are:
In file included from /usr/include/c++/4.8/iterator:64:0,
                 from /usr/include/boost/iterator.hpp:17,
                 from /usr/include/boost/concept_check.hpp:22,
                 from /home/cbeall3/git/gtsam/gtsam/base/Testable.h:37,
                 from /home/cbeall3/git/gtsam/gtsam/base/Group.h:23,
                 from /home/cbeall3/git/gtsam/gtsam/base/tests/testGroup.cpp:18:
/usr/include/c++/4.8/ostream:108:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(__ostream_type& (*__pf)(__ostream_type&))
       ^

Comments (1)

  1. Log in to comment