Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 8 years ago

Language

Compiler

Options

Author

anonymous

over 8 years ago

$
In file included from /usr/local/boost-1.61.0/include/boost/endian/buffers.hpp:39:0,
                 from prog.cc:2:
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp: In instantiation of 'EndianReversible boost::endian::native_to_big(EndianReversible) [with EndianReversible = Int]':
/usr/local/boost-1.61.0/include/boost/endian/buffers.hpp:435:51:   required from 'boost::endian::endian_buffer<(boost::endian::order)0, T, n_bits, (boost::endian::align)1>::endian_buffer(T) [with T = Int; long unsigned int n_bits = 32]'
prog.cc:21:26:   required from here
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:298:26: error: no matching function for call to 'endian_reverse(Int&)'
     return endian_reverse(x);
            ~~~~~~~~~~~~~~^~~
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:198:17: note: candidate: int8_t boost::endian::endian_reverse(int8_t)
   inline int8_t endian_reverse(int8_t x) BOOST_NOEXCEPT
                 ^~~~~~~~~~~~~~
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:198:17: note:   no known conversion for argument 1 from 'Int' to 'int8_t {aka signed char}'
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:203:18: note: candidate: int16_t boost::endian::endian_reverse(int16_t)
   inline int16_t endian_reverse(int16_t x) BOOST_NOEXCEPT
                  ^~~~~~~~~~~~~~
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:203:18: note:   no known conversion for argument 1 from 'Int' to 'int16_t {aka short int}'
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:213:18: note: candidate: int32_t boost::endian::endian_reverse(int32_t)
   inline int32_t endian_reverse(int32_t x) BOOST_NOEXCEPT
                  ^~~~~~~~~~~~~~
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:213:18: note:   no known conversion for argument 1 from 'Int' to 'int32_t {aka int}'
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:226:18: note: candidate: int64_t boost::endian::endian_reverse(int64_t)
   inline int64_t endian_reverse(int64_t x) BOOST_NOEXCEPT
                  ^~~~~~~~~~~~~~
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:226:18: note:   no known conversion for argument 1 from 'Int' to 'int64_t {aka long int}'
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:240:18: note: candidate: uint8_t boost::endian::endian_reverse(uint8_t)
   inline uint8_t endian_reverse(uint8_t x) BOOST_NOEXCEPT
                  ^~~~~~~~~~~~~~
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:240:18: note:   no known conversion for argument 1 from 'Int' to 'uint8_t {aka unsigned char}'
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:245:19: note: candidate: uint16_t boost::endian::endian_reverse(uint16_t)
   inline uint16_t endian_reverse(uint16_t x) BOOST_NOEXCEPT
                   ^~~~~~~~~~~~~~
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:245:19: note:   no known conversion for argument 1 from 'Int' to 'uint16_t {aka short unsigned int}'
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:255:19: note: candidate: uint32_t boost::endian::endian_reverse(uint32_t)
   inline uint32_t endian_reverse(uint32_t x) BOOST_NOEXCEPT
                   ^~~~~~~~~~~~~~
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:255:19: note:   no known conversion for argument 1 from 'Int' to 'uint32_t {aka unsigned int}'
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:268:19: note: candidate: uint64_t boost::endian::endian_reverse(uint64_t)
   inline uint64_t endian_reverse(uint64_t x) BOOST_NOEXCEPT
                   ^~~~~~~~~~~~~~
/usr/local/boost-1.61.0/include/boost/endian/conversion.hpp:268:19: note:   no known conversion for argument 1 from 'Int' to 'uint64_t {aka long unsigned int}'
In file included from prog.cc:2:0:
/usr/local/boost-1.61.0/include/boost/endian/buffers.hpp: In instantiation of 'static void boost::endian::detail::unrolled_byte_loops<T, n_bytes, sign>::store_big(char*, T) [with T = Int; long unsigned int n_bytes = 4; bool sign = false]':
/usr/local/boost-1.61.0/include/boost/endian/buffers.hpp:299:9:   required from 'void boost::endian::detail::store_big_endian(void*, T) [with T = Int; long unsigned int n_bytes = 4]'
/usr/local/boost-1.61.0/include/boost/endian/buffers.hpp:355:48:   required from 'boost::endian::endian_buffer<(boost::endian::order)0, T, n_bits, (boost::endian::align)0>::endian_buffer(T) [with T = Int; long unsigned int n_bits = 32]'
prog.cc:25:28:   required from here
/usr/local/boost-1.61.0/include/boost/endian/buffers.hpp:231:26: error: invalid static_cast from type 'Int' to type 'char'
           *(bytes - 1) = static_cast<char>(value);
                          ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/boost-1.61.0/include/boost/endian/buffers.hpp:232:59: error: no match for 'operator>>' (operand types are 'Int' and 'int')
           next::store_big(bytes - 1, static_cast<T>(value >> 8));
                                                     ~~~~~~^~~~
/usr/local/boost-1.61.0/include/boost/endian/buffers.hpp:202:5: note: candidate: template<class charT, class traits, boost::endian::order Order, class T, long unsigned int n_bits, boost::endian::align A> std::basic_istream<charT, traits>& boost::endian::operator>>(std::basic_istream<charT, traits>&, boost::endian::endian_buffer<Order, T, n_bits, A>&)
     operator>>(std::basic_istream<charT, traits>& is,
     ^~~~~~~~
/usr/local/boost-1.61.0/include/boost/endian/buffers.hpp:202:5: note:   template argument deduction/substitution failed:
/usr/local/boost-1.61.0/include/boost/endian/buffers.hpp:232:59: note:   'Int' is not derived from 'std::basic_istream<charT, traits>'
           next::store_big(bytes - 1, static_cast<T>(value >> 8));
                                                     ~~~~~~^~~~
Exit Code:
1