Skip to content

Instantly share code, notes, and snippets.

@gnzlbg
Created November 20, 2013 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnzlbg/7562256 to your computer and use it in GitHub Desktop.
Save gnzlbg/7562256 to your computer and use it in GitHub Desktop.
In file included from /Users/gnzlbg/projects/scattered/tests/vector_test.cpp:1:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/iostream:38:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/ios:216:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/__locale:15:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/string:439:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/algorithm:627:
In file included from /usr/local/lib/llvm-3.4/lib/c++/v1/memory:600:
/usr/local/lib/llvm-3.4/lib/c++/v1/iterator:794:28: error: invalid operands to binary expression ('ostream_type' (aka 'basic_ostream<char, std::__1::char_traits<char> >') and 'const TestType')
*__out_stream_ << __value_;
~~~~~~~~~~~~~~ ^ ~~~~~~~~
/usr/local/lib/llvm-3.4/lib/c++/v1/algorithm:1720:19: note: in instantiation of member function 'std::__1::ostream_iterator<TestType, char, std::__1::char_traits<char> >::operator=' requested here
*__result = *__first;
^
/usr/local/lib/llvm-3.4/lib/c++/v1/algorithm:1744:19: note: in instantiation of function template specialization 'std::__1::__copy<boost::reverse_iterator<std::__1::__wrap_iter<TestType *> >,
std::__1::ostream_iterator<TestType, char, std::__1::char_traits<char> > >' requested here
return _VSTD::__copy(__unwrap_iter(__first), __unwrap_iter(__last), __unwrap_iter(__result));
^
/usr/local/include/boost/range/iterator_range_io.hpp:59:18: note: in instantiation of function template specialization 'std::__1::copy<boost::reverse_iterator<std::__1::__wrap_iter<TestType *> >,
std::__1::ostream_iterator<TestType, char, std::__1::char_traits<char> > >' requested here
std::copy( r.begin(), r.end(),
^
/Users/gnzlbg/projects/scattered/ext/catch/catch-prefix/src/catch/include/internal/catch_tostring.hpp:77:17: note: in instantiation of function template specialization
'boost::operator<<<boost::reverse_iterator<std::__1::__wrap_iter<TestType *> >, char, std::__1::char_traits<char> >' requested here
oss << _value;
^
/Users/gnzlbg/projects/scattered/ext/catch/catch-prefix/src/catch/include/internal/catch_tostring.hpp:131:28: note: in instantiation of function template specialization
'Catch::Detail::StringMakerBase<true>::convert<boost::range_detail::reversed_range<std::__1::vector<TestType, std::__1::allocator<TestType> > > >' requested here
return StringMaker<T>::convert( value );
^
/Users/gnzlbg/projects/scattered/ext/catch/catch-prefix/src/catch/include/internal/catch_expression_lhs.hpp:86:29: note: in instantiation of function template specialization
'Catch::toString<boost::range_detail::reversed_range<std::__1::vector<TestType, std::__1::allocator<TestType> > > >' requested here
.setLhs( Catch::toString( m_lhs ) )
^
/Users/gnzlbg/projects/scattered/ext/catch/catch-prefix/src/catch/include/internal/catch_expression_lhs.hpp:28:16: note: in instantiation of function template specialization 'Catch::ExpressionLhs<const
boost::range_detail::reversed_range<std::__1::vector<TestType, std::__1::allocator<TestType> > > &>::captureExpression<0, std::__1::vector<TestType, std::__1::allocator<TestType> > >' requested
here
return captureExpression<Internal::IsEqualTo>( rhs );
^
/Users/gnzlbg/projects/scattered/tests/vector_test.cpp:105:48: note: in instantiation of function template specialization 'Catch::ExpressionLhs<const
boost::range_detail::reversed_range<std::__1::vector<TestType, std::__1::allocator<TestType> > > &>::operator==<std::__1::vector<TestType, std::__1::allocator<TestType> > >' requested here
REQUIRE( (vec | boost::adaptors::reversed) == ref);
^
/Users/gnzlbg/projects/scattered/ext/catch/catch-prefix/src/catch/include/catch.hpp:114:46: note: expanded from macro 'REQUIRE'
#define REQUIRE( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::Normal, "REQUIRE" )
^
/Users/gnzlbg/projects/scattered/ext/catch/catch-prefix/src/catch/include/internal/catch_capture.hpp:84:75: note: expanded from macro 'INTERNAL_CATCH_TEST'
INTERNAL_CATCH_ACCEPT_EXPR( ( Catch::ExpressionDecomposer()->*expr ).endExpression( resultDisposition ), resultDisposition, expr ); \
^
/Users/gnzlbg/projects/scattered/ext/catch/catch-prefix/src/catch/include/internal/catch_capture.hpp:68:104: note: expanded from macro 'INTERNAL_CATCH_ACCEPT_EXPR'
if( Catch::ResultAction::Value internal_catch_action = Catch::getResultCapture().acceptExpression( evaluatedExpr, INTERNAL_CATCH_ASSERTIONINFO_NAME ) ) { \
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:195:20: note: candidate function not viable: no known conversion from 'const TestType' to 'const void *' for 1st argument; take the address of the argument
with &
basic_ostream& operator<<(const void* __p);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:179:20: note: candidate function not viable: no known conversion from 'const TestType' to 'std::__1::basic_ostream<char, std::__1::char_traits<char> >
&(*)(std::__1::basic_ostream<char, std::__1::char_traits<char> > &)' for 1st argument
basic_ostream& operator<<(basic_ostream& (*__pf)(basic_ostream&));
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:180:20: note: candidate function not viable: no known conversion from 'const TestType' to 'basic_ios<char_type, traits_type> &(*)(basic_ios<char_type,
traits_type> &)' for 1st argument
basic_ostream& operator<<(basic_ios<char_type, traits_type>&
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:182:20: note: candidate function not viable: no known conversion from 'const TestType' to 'std::__1::ios_base &(*)(std::__1::ios_base &)' for 1st argument
basic_ostream& operator<<(ios_base& (*__pf)(ios_base&));
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:183:20: note: candidate function not viable: no known conversion from 'const TestType' to 'bool' for 1st argument
basic_ostream& operator<<(bool __n);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:184:20: note: candidate function not viable: no known conversion from 'const TestType' to 'short' for 1st argument
basic_ostream& operator<<(short __n);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:185:20: note: candidate function not viable: no known conversion from 'const TestType' to 'unsigned short' for 1st argument
basic_ostream& operator<<(unsigned short __n);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:186:20: note: candidate function not viable: no known conversion from 'const TestType' to 'int' for 1st argument
basic_ostream& operator<<(int __n);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:187:20: note: candidate function not viable: no known conversion from 'const TestType' to 'unsigned int' for 1st argument
basic_ostream& operator<<(unsigned int __n);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:188:20: note: candidate function not viable: no known conversion from 'const TestType' to 'long' for 1st argument
basic_ostream& operator<<(long __n);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:189:20: note: candidate function not viable: no known conversion from 'const TestType' to 'unsigned long' for 1st argument
basic_ostream& operator<<(unsigned long __n);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:190:20: note: candidate function not viable: no known conversion from 'const TestType' to 'long long' for 1st argument
basic_ostream& operator<<(long long __n);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:191:20: note: candidate function not viable: no known conversion from 'const TestType' to 'unsigned long long' for 1st argument
basic_ostream& operator<<(unsigned long long __n);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:192:20: note: candidate function not viable: no known conversion from 'const TestType' to 'float' for 1st argument
basic_ostream& operator<<(float __f);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:193:20: note: candidate function not viable: no known conversion from 'const TestType' to 'double' for 1st argument
basic_ostream& operator<<(double __f);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:194:20: note: candidate function not viable: no known conversion from 'const TestType' to 'long double' for 1st argument
basic_ostream& operator<<(long double __f);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:196:20: note: candidate function not viable: no known conversion from 'const TestType' to 'basic_streambuf<char_type, traits_type> *' for 1st argument
basic_ostream& operator<<(basic_streambuf<char_type, traits_type>* __sb);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:764:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'const TestType' to 'char' for
2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, char __cn)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:797:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'const TestType' to 'char' for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, char __c)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:829:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'const TestType' to 'signed char' for 2nd
argument
operator<<(basic_ostream<char, _Traits>& __os, signed char __c)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:861:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'const TestType' to 'unsigned char' for 2nd
argument
operator<<(basic_ostream<char, _Traits>& __os, unsigned char __c)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:926:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'const TestType' to
'const char *' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, const char* __strn)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:972:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'const TestType' to 'const char *' for 2nd
argument
operator<<(basic_ostream<char, _Traits>& __os, const char* __str)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:1005:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'const TestType' to 'const signed char *'
for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, const signed char* __str)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:1038:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'const TestType' to 'const unsigned char *'
for 2nd argument
operator<<(basic_ostream<char, _Traits>& __os, const unsigned char* __str)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:1268:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'const TestType' to
'const std::__1::error_code' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __ec)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:732:1: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. 'TestType')
operator<<(basic_ostream<_CharT, _Traits>& __os, _CharT __c)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/complex:1514:1: note: candidate template ignored: could not match 'complex<type-parameter-0-0>' against 'const TestType'
operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/iomanip:359:1: note: candidate template ignored: could not match '__iom_t8<type-parameter-0-2>' against 'const TestType'
operator<<(basic_ostream<_CharT, _Traits>& __os, const __iom_t8<_MoneyT>& __x)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/iomanip:474:5: note: candidate template ignored: could not match '__iom_t10<type-parameter-0-0>' against 'const TestType'
operator<<(basic_ostream<_Cp, _Traits>& __os, const __iom_t10<_Cp>& __x);
^
/usr/local/lib/llvm-3.4/lib/c++/v1/iomanip:583:33: note: candidate template ignored: could not match '__quoted_output_proxy<type-parameter-0-0, type-parameter-0-2, type-parameter-0-1>' against
'const TestType'
basic_ostream<_CharT, _Traits>& operator<<(
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:1219:5: note: candidate template ignored: disabled by 'enable_if'
[with _Stream = std::__1::basic_ostream<char, std::__1::char_traits<char> > &, _Tp = TestType]
!is_lvalue_reference<_Stream>::value &&
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:893:1: note: candidate template ignored: could not match 'const _CharT *' against 'TestType'
operator<<(basic_ostream<_CharT, _Traits>& __os, const _CharT* __str)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:1233:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'const TestType'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:1276:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-2>' against 'const TestType'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/ostream:1283:1: note: candidate template ignored: could not match 'bitset<_Size>' against 'const TestType'
operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x)
^
/usr/local/lib/llvm-3.4/lib/c++/v1/iomanip:603:33: note: candidate template ignored: could not match '__quoted_proxy<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'const TestType'
basic_ostream<_CharT, _Traits>& operator<<(
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment