Skip to content

Instantly share code, notes, and snippets.

@madebyjeffrey
Created December 12, 2011 06:32
Show Gist options
  • Save madebyjeffrey/1465410 to your computer and use it in GitHub Desktop.
Save madebyjeffrey/1465410 to your computer and use it in GitHub Desktop.
/Users/drakej/Projects/GrapheinPure/GrapheinPure/main.cpp:60:39:{60:5-60:38}{60:42-60:43}: error: invalid operands to binary expression ('std::__1::basic_ostream<char>' and 'iso::mat4' (aka 'array<vec4, 4>')) [3]
std::cout << "ortho" << std::endl << m << std::endl;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
/Developer/usr/bin/../lib/c++/v1/ostream:172:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'std::__1::basic_ostream<char> &(*)(std::__1::basic_ostream<char> &)' for 1st argument [3]
basic_ostream& operator<<(basic_ostream& (*__pf)(basic_ostream&));
^
/Developer/usr/bin/../lib/c++/v1/ostream:173:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'basic_ios<char_type, traits_type> &(*)(basic_ios<char_type, traits_type> &)' for 1st argument [3]
basic_ostream& operator<<(basic_ios<char_type, traits_type>&
^
/Developer/usr/bin/../lib/c++/v1/ostream:175:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'std::__1::ios_base &(*)(std::__1::ios_base &)' for 1st argument [3]
basic_ostream& operator<<(ios_base& (*__pf)(ios_base&));
^
/Developer/usr/bin/../lib/c++/v1/ostream:176:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'bool' for 1st argument [3]
basic_ostream& operator<<(bool __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:177:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'short' for 1st argument [3]
basic_ostream& operator<<(short __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:178:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'unsigned short' for 1st argument [3]
basic_ostream& operator<<(unsigned short __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:179:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'int' for 1st argument [3]
basic_ostream& operator<<(int __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:180:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'unsigned int' for 1st argument [3]
basic_ostream& operator<<(unsigned int __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:181:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'long' for 1st argument [3]
basic_ostream& operator<<(long __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:182:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'unsigned long' for 1st argument [3]
basic_ostream& operator<<(unsigned long __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:183:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'long long' for 1st argument [3]
basic_ostream& operator<<(long long __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:184:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'unsigned long long' for 1st argument [3]
basic_ostream& operator<<(unsigned long long __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:185:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'float' for 1st argument [3]
basic_ostream& operator<<(float __f);
^
/Developer/usr/bin/../lib/c++/v1/ostream:186:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'double' for 1st argument [3]
basic_ostream& operator<<(double __f);
^
/Developer/usr/bin/../lib/c++/v1/ostream:187:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'long double' for 1st argument [3]
basic_ostream& operator<<(long double __f);
^
/Developer/usr/bin/../lib/c++/v1/ostream:188:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const void *' for 1st argument [3]
basic_ostream& operator<<(const void* __p);
^
/Developer/usr/bin/../lib/c++/v1/ostream:189:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'basic_streambuf<char_type, traits_type> *' for 1st argument [3]
basic_ostream& operator<<(basic_streambuf<char_type, traits_type>* __sb);
^
/Developer/usr/bin/../lib/c++/v1/ostream:757:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'char' for 2nd argument [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, char __cn)
^
/Developer/usr/bin/../lib/c++/v1/ostream:790:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'char' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, char __c)
^
/Developer/usr/bin/../lib/c++/v1/ostream:822:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'signed char' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, signed char __c)
^
/Developer/usr/bin/../lib/c++/v1/ostream:854:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'unsigned char' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, unsigned char __c)
^
/Developer/usr/bin/../lib/c++/v1/ostream:919:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const char *' for 2nd argument [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, const char* __strn)
^
/Developer/usr/bin/../lib/c++/v1/ostream:965:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const char *' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, const char* __str)
^
/Developer/usr/bin/../lib/c++/v1/ostream:998:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const signed char *' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, const signed char* __str)
^
/Developer/usr/bin/../lib/c++/v1/ostream:1031:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const unsigned char *' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, const unsigned char* __str)
^
/Developer/usr/bin/../lib/c++/v1/ostream:1265:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const std::__1::error_code' for 2nd argument [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __ec)
^
/Developer/usr/bin/../lib/c++/v1/ostream:725:1: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. 'std::__1::array<std::__1::array<float, 4>, 4>') [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, _CharT __c)
^
/Developer/usr/bin/../lib/c++/v1/ostream:886:1: note: candidate template ignored: failed template argument deduction [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, const _CharT* __str)
^
/Developer/usr/bin/../lib/c++/v1/ostream:1220:1: note: candidate template ignored: substitution failure [with _Stream = std::__1::basic_ostream<char> &, _Tp = std::__1::array<std::__1::array<float, 4>, 4>] [3]
operator<<(_Stream&& __os, const _Tp& __x)
^
/Developer/usr/bin/../lib/c++/v1/ostream:1230:1: note: candidate template ignored: failed template argument deduction [3]
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Developer/usr/bin/../lib/c++/v1/ostream:1273:1: note: candidate template ignored: failed template argument deduction [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Y> const& __p)
^
/Developer/usr/bin/../lib/c++/v1/ostream:1280:1: note: candidate template ignored: failed template argument deduction [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x)
^
/Users/drakej/Projects/GrapheinPure/GrapheinPure/VertexBuffer.h:165:23: note: candidate template ignored: failed template argument deduction [3]
VertexBuffer<Layout> &operator<<(VertexBuffer<Layout>&buf, VertexBuffer<Layout> &(*f)(VertexBuffer<Layout> &))
^
/Users/drakej/Projects/GrapheinPure/GrapheinPure/main.cpp:25:15: note: candidate template ignored: couldn't infer template argument 'T' [3]
std::ostream &operator<<(std::ostream &o, const iso::mat4 &m)
^
/Users/drakej/Projects/GrapheinPure/GrapheinPure/main.cpp:61:41:{61:5-61:40}{61:44-61:45}: error: invalid operands to binary expression ('std::__1::basic_ostream<char>' and 'iso::mat4' (aka 'array<vec4, 4>')) [3]
std::cout << "ortho2d" << std::endl << n << std::endl;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
/Developer/usr/bin/../lib/c++/v1/ostream:172:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'std::__1::basic_ostream<char> &(*)(std::__1::basic_ostream<char> &)' for 1st argument [3]
basic_ostream& operator<<(basic_ostream& (*__pf)(basic_ostream&));
^
/Developer/usr/bin/../lib/c++/v1/ostream:173:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'basic_ios<char_type, traits_type> &(*)(basic_ios<char_type, traits_type> &)' for 1st argument [3]
basic_ostream& operator<<(basic_ios<char_type, traits_type>&
^
/Developer/usr/bin/../lib/c++/v1/ostream:175:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'std::__1::ios_base &(*)(std::__1::ios_base &)' for 1st argument [3]
basic_ostream& operator<<(ios_base& (*__pf)(ios_base&));
^
/Developer/usr/bin/../lib/c++/v1/ostream:176:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'bool' for 1st argument [3]
basic_ostream& operator<<(bool __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:177:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'short' for 1st argument [3]
basic_ostream& operator<<(short __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:178:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'unsigned short' for 1st argument [3]
basic_ostream& operator<<(unsigned short __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:179:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'int' for 1st argument [3]
basic_ostream& operator<<(int __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:180:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'unsigned int' for 1st argument [3]
basic_ostream& operator<<(unsigned int __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:181:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'long' for 1st argument [3]
basic_ostream& operator<<(long __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:182:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'unsigned long' for 1st argument [3]
basic_ostream& operator<<(unsigned long __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:183:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'long long' for 1st argument [3]
basic_ostream& operator<<(long long __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:184:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'unsigned long long' for 1st argument [3]
basic_ostream& operator<<(unsigned long long __n);
^
/Developer/usr/bin/../lib/c++/v1/ostream:185:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'float' for 1st argument [3]
basic_ostream& operator<<(float __f);
^
/Developer/usr/bin/../lib/c++/v1/ostream:186:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'double' for 1st argument [3]
basic_ostream& operator<<(double __f);
^
/Developer/usr/bin/../lib/c++/v1/ostream:187:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'long double' for 1st argument [3]
basic_ostream& operator<<(long double __f);
^
/Developer/usr/bin/../lib/c++/v1/ostream:188:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const void *' for 1st argument [3]
basic_ostream& operator<<(const void* __p);
^
/Developer/usr/bin/../lib/c++/v1/ostream:189:20: note: candidate function not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'basic_streambuf<char_type, traits_type> *' for 1st argument [3]
basic_ostream& operator<<(basic_streambuf<char_type, traits_type>* __sb);
^
/Developer/usr/bin/../lib/c++/v1/ostream:757:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'char' for 2nd argument [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, char __cn)
^
/Developer/usr/bin/../lib/c++/v1/ostream:790:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'char' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, char __c)
^
/Developer/usr/bin/../lib/c++/v1/ostream:822:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'signed char' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, signed char __c)
^
/Developer/usr/bin/../lib/c++/v1/ostream:854:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'unsigned char' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, unsigned char __c)
^
/Developer/usr/bin/../lib/c++/v1/ostream:919:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const char *' for 2nd argument [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, const char* __strn)
^
/Developer/usr/bin/../lib/c++/v1/ostream:965:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const char *' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, const char* __str)
^
/Developer/usr/bin/../lib/c++/v1/ostream:998:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const signed char *' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, const signed char* __str)
^
/Developer/usr/bin/../lib/c++/v1/ostream:1031:1: note: candidate function [with _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const unsigned char *' for 2nd argument [3]
operator<<(basic_ostream<char, _Traits>& __os, const unsigned char* __str)
^
/Developer/usr/bin/../lib/c++/v1/ostream:1265:1: note: candidate function [with _CharT = char, _Traits = std::__1::char_traits<char>] not viable: no known conversion from 'iso::mat4' (aka 'array<vec4, 4>') to 'const std::__1::error_code' for 2nd argument [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __ec)
^
/Developer/usr/bin/../lib/c++/v1/ostream:725:1: note: candidate template ignored: deduced conflicting types for parameter '_CharT' ('char' vs. 'std::__1::array<std::__1::array<float, 4>, 4>') [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, _CharT __c)
^
/Developer/usr/bin/../lib/c++/v1/ostream:886:1: note: candidate template ignored: failed template argument deduction [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, const _CharT* __str)
^
/Developer/usr/bin/../lib/c++/v1/ostream:1220:1: note: candidate template ignored: substitution failure [with _Stream = std::__1::basic_ostream<char> &, _Tp = std::__1::array<std::__1::array<float, 4>, 4>] [3]
operator<<(_Stream&& __os, const _Tp& __x)
^
/Developer/usr/bin/../lib/c++/v1/ostream:1230:1: note: candidate template ignored: failed template argument deduction [3]
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/Developer/usr/bin/../lib/c++/v1/ostream:1273:1: note: candidate template ignored: failed template argument deduction [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Y> const& __p)
^
/Developer/usr/bin/../lib/c++/v1/ostream:1280:1: note: candidate template ignored: failed template argument deduction [3]
operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x)
^
/Users/drakej/Projects/GrapheinPure/GrapheinPure/VertexBuffer.h:165:23: note: candidate template ignored: failed template argument deduction [3]
VertexBuffer<Layout> &operator<<(VertexBuffer<Layout>&buf, VertexBuffer<Layout> &(*f)(VertexBuffer<Layout> &))
^
/Users/drakej/Projects/GrapheinPure/GrapheinPure/main.cpp:25:15: note: candidate template ignored: couldn't infer template argument 'T' [3]
std::ostream &operator<<(std::ostream &o, const iso::mat4 &m)
^
2 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment