Skip to content

Instantly share code, notes, and snippets.

@alex85k
Created October 18, 2015 08:29
Show Gist options
  • Save alex85k/6aac3aa9367cb0fd79e1 to your computer and use it in GitHub Desktop.
Save alex85k/6aac3aa9367cb0fd79e1 to your computer and use it in GitHub Desktop.
[ 0%] Building CXX object CMakeFiles/alacarte-importer.dir/src/alacarte_importer.cpp.o
/home/ak/alacarte/src/alacarte_importer.cpp:99:33: error: invalid operands to binary expression ('basic_record_ostream<char_type>' and 'excp::ErrorOut<excp::InfoWhat>')
LOG_SEV(importer_log, error) << excp::ErrorOut<excp::InfoWhat>(e);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ak/alacarte/include/utils/cached_string.hpp:219:9: note: candidate function [with Stream = boost::log::v2_mt_posix::basic_record_ostream<char>] not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'const CachedString' for 2nd argument
Stream& operator << (Stream& stream, const CachedString& str)
^
/usr/local/include/boost/exception/info_tuple.hpp:25:5: note: candidate function [with E = boost::log::v2_mt_posix::basic_record_ostream<char>] not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'const tuple<>' for 2nd argument
operator<<(
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:377:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'ios_base_manip' (aka 'std::ios_base &(*)(std::ios_base &)') for 1st argument
basic_formatting_ostream& operator<< (ios_base_manip manip)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:382:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'basic_ios_manip' (aka 'std::basic_ios<char_type, traits_type> &(*)(std::basic_ios<char_type, traits_type> &)') for 1st argument
basic_formatting_ostream& operator<< (basic_ios_manip manip)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:387:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'stream_manip' (aka 'ostream_type &(*)(ostream_type &)') for 1st argument
basic_formatting_ostream& operator<< (stream_manip manip)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:393:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'char' for 1st argument
basic_formatting_ostream& operator<< (char c)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:397:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'const char *' for 1st argument
basic_formatting_ostream& operator<< (const char* p)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:403:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'wchar_t' for 1st argument
basic_formatting_ostream& operator<< (wchar_t c)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:407:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'const wchar_t *' for 1st argument
basic_formatting_ostream& operator<< (const wchar_t* p)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:414:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'char16_t' for 1st argument
basic_formatting_ostream& operator<< (char16_t c)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:418:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'const char16_t *' for 1st argument
basic_formatting_ostream& operator<< (const char16_t* p)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:424:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'char32_t' for 1st argument
basic_formatting_ostream& operator<< (char32_t c)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:428:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'const char32_t *' for 1st argument
basic_formatting_ostream& operator<< (const char32_t* p)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:435:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'bool' for 1st argument
basic_formatting_ostream& operator<< (bool value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:440:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'signed char' for 1st argument
basic_formatting_ostream& operator<< (signed char value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:445:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'unsigned char' for 1st argument
basic_formatting_ostream& operator<< (unsigned char value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:450:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'short' for 1st argument
basic_formatting_ostream& operator<< (short value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:455:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'unsigned short' for 1st argument
basic_formatting_ostream& operator<< (unsigned short value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:460:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'int' for 1st argument
basic_formatting_ostream& operator<< (int value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:465:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'unsigned int' for 1st argument
basic_formatting_ostream& operator<< (unsigned int value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:470:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'long' for 1st argument
basic_formatting_ostream& operator<< (long value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:475:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'unsigned long' for 1st argument
basic_formatting_ostream& operator<< (unsigned long value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:481:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'long long' for 1st argument
basic_formatting_ostream& operator<< (long long value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:486:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'unsigned long long' for 1st argument
basic_formatting_ostream& operator<< (unsigned long long value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:493:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'float' for 1st argument
basic_formatting_ostream& operator<< (float value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:498:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'double' for 1st argument
basic_formatting_ostream& operator<< (double value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:503:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'long double' for 1st argument
basic_formatting_ostream& operator<< (long double value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:509:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'const void *' for 1st argument
basic_formatting_ostream& operator<< (const void* value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:515:31: note: candidate function not viable: no known conversion from 'excp::ErrorOut<excp::InfoWhat>' to 'std::basic_streambuf<char_type, traits_type> *' for 1st argument
basic_formatting_ostream& operator<< (std::basic_streambuf< char_type, traits_type >* buf)
^
/usr/include/c++/v1/ostream:1063:5: note: candidate template ignored: disabled by 'enable_if' [with _Stream = boost::log::v2_mt_posix::basic_record_ostream<char> &, _Tp = excp::ErrorOut<boost::error_info<excp::TagWhatInfo, std::__1::basic_string<char> > >]
!is_lvalue_reference<_Stream>::value &&
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:784:1: note: candidate template ignored: substitution failure [with StreamT = boost::log::v2_mt_posix::basic_record_ostream<char>, T = excp::ErrorOut<boost::error_info<excp::TagWhatInfo, std::__1::basic_string<char> > >]: no type named 'type' in 'boost::log::v2_mt_posix::aux::enable_if_formatting_ostream<boost::log::v2_mt_posix::basic_record_ostream<char>, boost::log::v2_mt_posix::basic_record_ostream<char> &>'
operator<< (StreamT& strm, T const& value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:792:1: note: candidate template ignored: substitution failure [with StreamT = boost::log::v2_mt_posix::basic_record_ostream<char>, T = excp::ErrorOut<boost::error_info<excp::TagWhatInfo, std::__1::basic_string<char> > >]: no type named 'type' in 'boost::log::v2_mt_posix::aux::enable_if_formatting_ostream<boost::log::v2_mt_posix::basic_record_ostream<char>, boost::log::v2_mt_posix::basic_record_ostream<char> &>'
operator<< (StreamT& strm, T& value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:802:1: note: candidate template ignored: substitution failure [with StreamT = boost::log::v2_mt_posix::basic_record_ostream<char> &, T = excp::ErrorOut<boost::error_info<excp::TagWhatInfo, std::__1::basic_string<char> > >]: no type named 'type' in 'boost::log::v2_mt_posix::aux::enable_if_formatting_ostream<boost::log::v2_mt_posix::basic_record_ostream<char> &, boost::log::v2_mt_posix::basic_record_ostream<char> &>'
operator<< (StreamT&& strm, T const& value)
^
/usr/local/include/boost/exception/info_tuple.hpp:67:5: note: candidate template ignored: could not match 'tuple' against 'ErrorOut'
operator<<(
^
/usr/include/c++/v1/ostream:778:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os, _CharT __c)
^
/usr/include/c++/v1/ostream:785:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os, char __cn)
^
/usr/include/c++/v1/ostream:818:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<char, _Traits>& __os, char __c)
^
/usr/include/c++/v1/ostream:825:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<char, _Traits>& __os, signed char __c)
^
/usr/include/c++/v1/ostream:832:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<char, _Traits>& __os, unsigned char __c)
^
/usr/include/c++/v1/ostream:839:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os, const _CharT* __str)
^
/usr/include/c++/v1/ostream:846:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os, const char* __strn)
^
/usr/include/c++/v1/ostream:892:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<char, _Traits>& __os, const char* __str)
^
/usr/include/c++/v1/ostream:899:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<char, _Traits>& __os, const signed char* __str)
^
/usr/include/c++/v1/ostream:907:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<char, _Traits>& __os, const unsigned char* __str)
^
/usr/include/c++/v1/ostream:1077:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/usr/include/c++/v1/ostream:1086:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __ec)
^
/usr/include/c++/v1/ostream:1094:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p)
^
/usr/include/c++/v1/ostream:1101:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os, const bitset<_Size>& __x)
^
/usr/local/include/boost/smart_ptr/shared_ptr.hpp:891:64: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, shared_ptr<Y> const & p)
^
/usr/include/c++/v1/iomanip:361:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os, const __iom_t8<_MoneyT>& __x)
^
/usr/include/c++/v1/iomanip:481:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os, const __iom_t10<_CharT>& __x)
^
/usr/local/include/boost/exception/info.hpp:189:5: note: candidate template ignored: could not match 'error_info' against 'ErrorOut'
operator<<( E const & x, error_info<Tag,T> const & v )
^
/usr/local/include/boost/exception/info_tuple.hpp:37:5: note: candidate template ignored: could not match 'tuple' against 'ErrorOut'
operator<<(
^
/usr/local/include/boost/exception/info_tuple.hpp:51:5: note: candidate template ignored: could not match 'tuple' against 'ErrorOut'
operator<<(
^
/usr/local/include/boost/exception/info_tuple.hpp:85:5: note: candidate template ignored: could not match 'tuple' against 'ErrorOut'
operator<<(
^
/usr/local/include/boost/log/attributes/attribute_name.hpp:175:53: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
BOOST_LOG_API std::basic_ostream< CharT, TraitsT >& operator<< (
^
/usr/local/include/boost/smart_ptr/intrusive_ptr.hpp:312:64: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, intrusive_ptr<Y> const & p)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:523:5: note: candidate template ignored: could not match 'basic_string' against 'ErrorOut'
operator<< (basic_formatting_ostream& strm, std::basic_string< OtherCharT, OtherTraitsT, OtherAllocatorT > const& str)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:544:5: note: candidate template ignored: could not match 'basic_string' against 'ErrorOut'
operator<< (basic_formatting_ostream& strm, std::basic_string< OtherCharT, OtherTraitsT, OtherAllocatorT >& str)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:551:5: note: candidate template ignored: could not match 'basic_string_literal' against 'ErrorOut'
operator<< (basic_formatting_ostream& strm, basic_string_literal< OtherCharT, OtherTraitsT >& str)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:566:5: note: candidate template ignored: could not match 'basic_string' against 'ErrorOut'
operator<< (basic_formatting_ostream&& strm, std::basic_string< OtherCharT, OtherTraitsT, OtherAllocatorT > const& str)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:573:5: note: candidate template ignored: could not match 'basic_string_literal' against 'ErrorOut'
operator<< (basic_formatting_ostream&& strm, basic_string_literal< OtherCharT, OtherTraitsT > const& str)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:580:5: note: candidate template ignored: could not match 'basic_string_ref' against 'ErrorOut'
operator<< (basic_formatting_ostream&& strm, basic_string_ref< OtherCharT, OtherTraitsT > const& str)
^
/home/ak/alacarte/include/utils/point.hpp:135:24: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
std::basic_ostream<C>& operator << (std::basic_ostream<C>& os, const basic_vector2<T>& v)
^
/usr/include/c++/v1/complex:1514:1: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x)
^
/usr/local/include/boost/log/utility/manipulators/to_log.hpp:57:87: note: candidate template ignored: could not match 'to_log_manip' against 'ErrorOut'
inline typename enable_if_c< log::aux::is_ostream< StreamT >::value, StreamT& >::type operator<< (StreamT& strm, to_log_manip< T, TagT > manip)
^
/usr/include/c++/v1/valarray:4034:5: note: candidate template ignored: disabled by 'enable_if' [with _Expr = excp::ErrorOut<boost::error_info<excp::TagWhatInfo, std::__1::basic_string<char> > >]
__is_val_expr<_Expr>::value,
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:530:5: note: candidate template ignored: could not match 'basic_string_literal' against 'ErrorOut'
operator<< (basic_formatting_ostream& strm, basic_string_literal< OtherCharT, OtherTraitsT > const& str)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:594:5: note: candidate template ignored: could not match 'basic_string_literal' against 'ErrorOut'
operator<< (basic_formatting_ostream&& strm, basic_string_literal< OtherCharT, OtherTraitsT >& str)
^
/home/ak/alacarte/include/utils/exceptions.hpp:108:30: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
std::basic_ostream<Stream>& operator <<(std::basic_ostream<Stream>& os, const ErrorOut<Info>& info)
^
/usr/local/include/boost/log/utility/value_ref.hpp:495:64: note: candidate template ignored: could not match 'value_ref' against 'ErrorOut'
inline basic_formatting_ostream< CharT, TraitsT, AllocatorT >& operator<< (basic_formatting_ostream< CharT, TraitsT, AllocatorT >& strm, value_ref< T, TagT > const& val)
^
/usr/include/c++/v1/valarray:4007:1: note: candidate template ignored: substitution failure [with _Expr1 = boost::log::v2_mt_posix::basic_record_ostream<char>, _Expr2 = excp::ErrorOut<boost::error_info<excp::TagWhatInfo, std::__1::basic_string<char> > >]: no type named 'value_type' in 'boost::log::v2_mt_posix::basic_record_ostream<char>'
operator<<(const _Expr1& __x, const _Expr2& __y)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:537:5: note: candidate template ignored: could not match 'basic_string_ref' against 'ErrorOut'
operator<< (basic_formatting_ostream& strm, basic_string_ref< OtherCharT, OtherTraitsT > const& str)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:558:5: note: candidate template ignored: could not match 'basic_string_ref' against 'ErrorOut'
operator<< (basic_formatting_ostream& strm, basic_string_ref< OtherCharT, OtherTraitsT >& str)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:587:5: note: candidate template ignored: could not match 'basic_string' against 'ErrorOut'
operator<< (basic_formatting_ostream&& strm, std::basic_string< OtherCharT, OtherTraitsT, OtherAllocatorT >& str)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:810:1: note: candidate template ignored: substitution failure [with StreamT = boost::log::v2_mt_posix::basic_record_ostream<char> &, T = excp::ErrorOut<boost::error_info<excp::TagWhatInfo, std::__1::basic_string<char> > >]: no type named 'type' in 'boost::log::v2_mt_posix::aux::enable_if_formatting_ostream<boost::log::v2_mt_posix::basic_record_ostream<char> &, boost::log::v2_mt_posix::basic_record_ostream<char> &>'
operator<< (StreamT&& strm, T& value)
^
/usr/local/include/boost/log/utility/formatting_ostream.hpp:601:5: note: candidate template ignored: could not match 'basic_string_ref' against 'ErrorOut'
operator<< (basic_formatting_ostream&& strm, basic_string_ref< OtherCharT, OtherTraitsT >& str)
^
/usr/include/c++/v1/valarray:4022:1: note: candidate template ignored: substitution failure [with _Expr = boost::log::v2_mt_posix::basic_record_ostream<char>]: no type named 'value_type' in 'boost::log::v2_mt_posix::basic_record_ostream<char>'
operator<<(const _Expr& __x, const typename _Expr::value_type& __y)
^
/home/ak/alacarte/include/utils/typedId.hpp:104:22: note: candidate template ignored: could not match 'TypedId' against 'ErrorOut'
inline std::ostream& operator <<(std::ostream& o, const TypedId<TypeNumber>& id)
^
/usr/local/include/boost/log/utility/value_ref.hpp:486:46: note: candidate template ignored: could not match 'basic_ostream' against 'basic_record_ostream'
inline std::basic_ostream< CharT, TraitsT >& operator<< (std::basic_ostream< CharT, TraitsT >& strm, value_ref< T, TagT > const& val)
^
1 error generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/home/ak/alacarte/build
*** Error code 1
Stop.
make[1]: stopped in /usr/home/ak/alacarte/build
*** Error code 1
Stop.
make: stopped in /usr/home/ak/alacarte/build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment