Subject: [Boost-bugs] [Boost C++ Libraries] #1524: format_date_parser.hpp(221) : cannot convert parameter 1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-12-15 15:46:41
#1524: format_date_parser.hpp(221) : cannot convert parameter 1
----------------------------------+-----------------------------------------
Reporter: olafvdspek_at_[hidden] | Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: date_time
Version: Boost 1.34.1 | Severity: Problem
Keywords: |
----------------------------------+-----------------------------------------
Forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=448576
{{{
#include <boost/date_time/gregorian/greg_date.hpp>
#include <boost/date_time/format_date_parser.hpp>
#include <boost/date_time/special_values_parser.hpp>
#include <locale>
int main ()
{
boost::date_time::format_date_parser<boost::gregorian::date, char>
parser(std::string("%Y-%m-%d"), std::locale("C"));
boost::date_time::special_values_parser<boost::gregorian::date, char>
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<char>
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<date_type,charT>::parse_date(const
std::basic_string<_Elem,_Traits,_Ax> &,const
std::basic_string<_Elem,_Traits,_Ax> &,const
boost::date_time::special_values_parser<date_type,charT> &) const'
1> with
1> [
1> date_type=boost::gregorian::date,
1> charT=char,
1> _Elem=char,
1> _Traits=std::char_traits<char>,
1> _Ax=std::allocator<char>
1> ]
1> c:\vc\xbt\tracker\xbt tracker.cpp(10) : see reference to class
template instantiation
'boost::date_time::format_date_parser<date_type,charT>' being compiled
1> with
1> [
1> date_type=boost::gregorian::date,
1> charT=char
1> ]}}}
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1524>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC