Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4856: compilation error: boost::local_time::local_microsec_clock::local_time()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-30 13:36:43
#4856: compilation error: boost::local_time::local_microsec_clock::local_time()
---------------------------------+------------------------------------------
Reporter: dobrov0@⦠| Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: To Be Determined | Component: date_time
Version: Boost 1.42.0 | Severity: Problem
Resolution: | Keywords: local_time
---------------------------------+------------------------------------------
Comment (by ktchan):
Yes, this is a problem with Visual Studio as well.
Note that the same bug occur when calling:
{{{
boost::local_time::local_sec_clock::local_time();
}}}
{{{
1>------ Build started: Project: test, Configuration: Debug Win32 ------
1>Build started 30/11/2010 12:59:54.
1>InitializeBuildStatus:
1> Touching "Debug\test.unsuccessfulbuild".
1>ClCompile:
1> test.cpp
1>d:\libs\boost_1_45_0\boost\date_time\microsec_time_clock.hpp(116): error
C2665: 'boost::local_time::local_date_time_base<>::local_date_time_base' :
none of the 5 overloads could convert all the argument types
1>
d:\libs\boost_1_45_0\boost\date_time\local_time\local_date_time.hpp(81):
could be
'boost::local_time::local_date_time_base<>::local_date_time_base(boost::posix_time::ptime,boost::shared_ptr<T>)'
1> with
1> [
1>
T=boost::date_time::time_zone_base<boost::posix_time::ptime,char>
1> ]
1>
d:\libs\boost_1_45_0\boost\date_time\local_time\local_date_time.hpp(220):
or
'boost::local_time::local_date_time_base<>::local_date_time_base(const
boost::date_time::special_values,boost::shared_ptr<T>)'
1> with
1> [
1>
T=boost::date_time::time_zone_base<boost::posix_time::ptime,char>
1> ]
1> while trying to match the argument list
'(boost::gregorian::date, boost::posix_time::time_duration)'
1>
d:\libs\boost_1_45_0\boost\date_time\microsec_time_clock.hpp(81) : while
compiling class template member function
'boost::local_time::local_date_time
boost::date_time::microsec_clock<time_type>::create_time(boost::date_time::microsec_clock<time_type>::time_converter)'
1> with
1> [
1> time_type=boost::local_time::local_date_time
1> ]
1> l:\users\ktc\documents\visual studio
2010\projects\date_time\test\test.cpp(30) : see reference to class
template instantiation 'boost::date_time::microsec_clock<time_type>' being
compiled
1> with
1> [
1> time_type=boost::local_time::local_date_time
1> ]
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:06.66
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4856#comment:1> 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:50:04 UTC