Author
anonymous
about 8 years ago
Language
Compiler
Options
Raw runtime options
O0
Author
anonymous
about 8 years ago
$ O0
In file included from prog.cc:2:
/opt/wandbox/boost-1.63.0/clang-head/include/boost/iterator/iterator_facade.hpp:769:32: error: cannot form a reference to 'void'
, class Reference = Value&
^
prog.cc:6:37: note: in instantiation of default argument for 'iterator_facade<putc_iterator, void, std::__1::output_iterator_tag>' required here
class putc_iterator : public boost::iterator_facade<
^~~~~~~~~~~~~~~~
In file included from prog.cc:1:
/opt/wandbox/clang-head/include/c++/v1/algorithm:1705:49: error: cannot increment value of type 'putc_iterator'
for (; __first != __last; ++__first, (void) ++__result)
^ ~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/algorithm:1731:19: note: in instantiation of function template specialization 'std::__1::__copy<char *, putc_iterator>' requested here
return _VSTD::__copy(__unwrap_iter(__first), __unwrap_iter(__last), __unwrap_iter(__result));
^
prog.cc:26:10: note: in instantiation of function template specialization 'std::__1::copy<std::__1::__wrap_iter<char *>, putc_iterator>' requested here
std::copy(s.begin(), s.end(), destination);
^
2 errors generated.
Exit Code:
1