id summary reporter owner description type status milestone component version severity resolution keywords cc 7407 istream_range does not compile with wcin Christopher Yeleighton Neil Groves "The following code does not compile: {{{#!C++ #include static void trigger () { ::boost ::istream_range < int > (::std ::cin); ::boost ::istream_range < int > (::std ::wcin); } }}} Result: {{{ In file included from boost.cc:1:0: /usr/include/boost/range/istream_range.hpp: In instantiation of ‘boost::iterator_range > boost::range::istream_range(std::basic_istream&) [with Type = int; Elem = wchar_t; Traits = std::char_traits]’: boost.cc:5:46: required from here /usr/include/boost/range/istream_range.hpp:31:46: error: no matching function for call to ‘std::istream_iterator, long int>::istream_iterator(std::basic_istream&)’ /usr/include/boost/range/istream_range.hpp:31:46: note: candidates are: In file included from /usr/include/c++/4.7/iterator:66:0, from /usr/include/boost/range/istream_range.hpp:16, from boost.cc:1: /usr/include/c++/4.7/bits/stream_iterator.h:72:7: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator(const std::istream_iterator<_Tp, _CharT, _Traits, _Dist>&) [with _Tp = int; _CharT = char; _Traits = std::char_traits; _Dist = long int; std::istream_iterator<_Tp, _CharT, _Traits, _Dist> = std::istream_iterator, long int>] /usr/include/c++/4.7/bits/stream_iterator.h:72:7: note: no known conversion for argument 1 from ‘std::basic_istream’ to ‘const std::istream_iterator, long int>&’ /usr/include/c++/4.7/bits/stream_iterator.h:68:7: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator(std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_type&) [with _Tp = int; _CharT = char; _Traits = std::char_traits; _Dist = long int; std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_type = std::basic_istream] /usr/include/c++/4.7/bits/stream_iterator.h:68:7: note: no known conversion for argument 1 from ‘std::basic_istream’ to ‘std::istream_iterator, long int>::istream_type& {aka std::basic_istream&}’ /usr/include/c++/4.7/bits/stream_iterator.h:64:26: note: std::istream_iterator<_Tp, _CharT, _Traits, _Dist>::istream_iterator() [with _Tp = int; _CharT = char; _Traits = std::char_traits; _Dist = long int] /usr/include/c++/4.7/bits/stream_iterator.h:64:26: note: candidate expects 0 arguments, 1 provided }}}" Bugs closed To Be Determined range Boost 1.51.0 Problem fixed