id summary reporter owner description type status milestone component version severity resolution keywords cc 1524 format_date_parser.hpp(221) : cannot convert parameter 1 olafvdspek@… az_sw_dude "Forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=448576 {{{ #include #include #include #include int main () { boost::date_time::format_date_parser parser(std::string(""%Y-%m-%d""), std::locale(""C"")); boost::date_time::special_values_parser special_parser(""a"", ""a"", ""a"", ""a"", ""a""); parser.parse_date(""2007-01-01"", ""%Y-%m-%d"", special_parser); return 0; } 1>XBT Tracker.cpp 1>c:\vc\misc\include\boost\date_time\format_date_parser.hpp(221) : error C2664: 'std::istreambuf_iterator<_Elem,_Traits>::istreambuf_iterator(std::basic_streambuf<_Elem,_Traits> *) throw()' : cannot convert parameter 1 from 'std::basic_ostringstream<_Elem,_Traits,_Alloc>' to 'std::basic_streambuf<_Elem,_Traits> *' 1> with 1> [ 1> _Elem=char, 1> _Traits=std::char_traits 1> ] 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called 1> c:\vc\misc\include\boost\date_time\format_date_parser.hpp(218) : while compiling class template member function 'boost::gregorian::date boost::date_time::format_date_parser::parse_date(const std::basic_string<_Elem,_Traits,_Ax> &,const std::basic_string<_Elem,_Traits,_Ax> &,const boost::date_time::special_values_parser &) const' 1> with 1> [ 1> date_type=boost::gregorian::date, 1> charT=char, 1> _Elem=char, 1> _Traits=std::char_traits, 1> _Ax=std::allocator 1> ] 1> c:\vc\xbt\tracker\xbt tracker.cpp(10) : see reference to class template instantiation 'boost::date_time::format_date_parser' being compiled 1> with 1> [ 1> date_type=boost::gregorian::date, 1> charT=char 1> ]}}}" Bugs closed Boost 1.36.0 date_time Boost 1.34.1 Problem duplicate