Boost logo

Boost Users :

From: dick.bridges_at_[hidden]
Date: 2003-07-23 16:19:20


I must be missing one or more headers but I can't figure it out. Can
someone help get me pointed in the right direction?

<extract>

#include "boost/date_time/gregorian/gregorian.hpp"
#include "boost/date_time/posix_time/posix_time.hpp"

using namespace boost::posix_time;
using namespace boost::gregorian;

date d(2002,Feb,1);

</extract>

<results>
c:\boost\boost_1_30_0\boost\date_time\gregorian\greg_month.hpp(51) :
warning C4244: 'argument' : conversion from
'boost::gregorian::greg_month::month_enum' to
'boost::CV::constrained_value<value_policies>::value_type', possible loss
of data
        with
        [
            value_policies=boost::gregorian::greg_month_policies
        ]
c:\boost\boost_1_30_0\boost\date_time\gregorian\greg_date.hpp(77) : warning
C4244: 'argument' : conversion from 'boost::gregorian::date_duration_rep'
to 'boost::CV::constrained_value<value_policies>::value_type', possible
loss of data
        with
        [
            value_policies=boost::gregorian::greg_day_of_year_policies
        ]
c:\boost\boost_1_30_0\boost\date_time\time_parsing.hpp(65) : warning C4267:
'initializing' : conversion from 'size_t' to 'int', possible loss of data
        c:\boost\boost_1_30_0\boost\iterator_adaptors.hpp(1409) : see
reference to class template instantiation
'boost::filter_iterator_generator<Predicate,Iterator,Value,Reference,Pointer,Category,Distance>'

being compiled
c:\boost\boost_1_30_0\boost\date_time\time_duration.hpp(69) : warning
C4244: 'return' : conversion from
'boost::date_time::time_resolution_traits<frac_sec_type,res,resolution_adjust,frac_digits>::fractional_seconds_type'

to 'boost::date_time::time_duration<T,rep_type>::hour_type', possible loss
of data
        with
        [
            frac_sec_type=boost::int64_t,
            res=micro,
            resolution_adjust=0x0f4240,
            frac_digits=6
        ]
        and
        [
            T=boost::posix_time::time_duration,
            rep_type=boost::posix_time::time_res_traits
        ]
        c:\boost\boost_1_30_0\boost\date_time\time_duration.hpp(68) : while
compiling class-template member function
'boost::date_time::time_duration<T,rep_type>::hour_type
boost::date_time::time_duration<T,rep_type>::hours(void) const'
        with
        [
            T=boost::posix_time::time_duration,
            rep_type=boost::posix_time::time_res_traits
        ]
        c:
\boost\boost_1_30_0\boost\date_time\posix_time\posix_time_config.hpp(62) :
see reference to class template instantiation
'boost::date_time::time_duration<T,rep_type>' being compiled
        with
        [
            T=boost::posix_time::time_duration,
            rep_type=boost::posix_time::time_res_traits
        ]
c:\boost\boost_1_30_0\boost\date_time\time_duration.hpp(74) : warning
C4244: 'return' : conversion from
'boost::date_time::time_resolution_traits<frac_sec_type,res,resolution_adjust,frac_digits>::fractional_seconds_type'

to 'boost::date_time::time_duration<T,rep_type>::min_type', possible loss
of data
        with
        [
            frac_sec_type=boost::int64_t,
            res=micro,
            resolution_adjust=0x0f4240,
            frac_digits=6
        ]
        and
        [
            T=boost::posix_time::time_duration,
            rep_type=boost::posix_time::time_res_traits
        ]
        c:\boost\boost_1_30_0\boost\date_time\time_duration.hpp(73) : while
compiling class-template member function
'boost::date_time::time_duration<T,rep_type>::min_type
boost::date_time::time_duration<T,rep_type>::minutes(void) const'
        with
        [
            T=boost::posix_time::time_duration,
            rep_type=boost::posix_time::time_res_traits
        ]
c:\boost\boost_1_30_0\boost\date_time\time_duration.hpp(79) : warning
C4244: 'return' : conversion from
'boost::date_time::time_resolution_traits<frac_sec_type,res,resolution_adjust,frac_digits>::fractional_seconds_type'

to 'boost::date_time::time_duration<T,rep_type>::sec_type', possible loss
of data
        with
        [
            frac_sec_type=boost::int64_t,
            res=micro,
            resolution_adjust=0x0f4240,
            frac_digits=6
        ]
        and
        [
            T=boost::posix_time::time_duration,
            rep_type=boost::posix_time::time_res_traits
        ]
        c:\boost\boost_1_30_0\boost\date_time\time_duration.hpp(78) : while
compiling class-template member function
'boost::date_time::time_duration<T,rep_type>::sec_type
boost::date_time::time_duration<T,rep_type>::seconds(void) const'
        with
        [
            T=boost::posix_time::time_duration,
            rep_type=boost::posix_time::time_res_traits
        ]
c:\boost\boost_1_30_0\boost\date_time\time_system_counted.hpp(39) : warning
C4244: 'initializing' : conversion from
'boost::date_time::counted_time_rep<config>::int_type' to
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::date_int_type',

possible loss of data
        with
        [
            config=boost::posix_time::millisec_posix_time_system_config
        ]
        and
        [
            ymd_type_=boost::gregorian::greg_year_month_day,
            date_int_type_=boost::date_time::int_adapter<unsigned
long>::int_type
        ]
        c:\boost\boost_1_30_0\boost\date_time\time_system_counted.hpp(38) :
while compiling class-template member function
'boost::date_time::counted_time_rep<config>::date_type
boost::date_time::counted_time_rep<config>::date(void) const'
        with
        [
            config=boost::posix_time::millisec_posix_time_system_config
        ]
        c:\boost\boost_1_30_0\boost\date_time\time_system_counted.hpp(72) :
see reference to class template instantiation
'boost::date_time::counted_time_rep<config>' being compiled
        with
        [
            config=boost::posix_time::millisec_posix_time_system_config
        ]
        c:\boost\boost_1_30_0\boost\date_time\time.hpp(48) : see reference
to class template instantiation
'boost::date_time::counted_time_system<time_rep>' being compiled
        with
        [
            time_rep=boost::posix_time::int64_time_rep
        ]
        c:\boost\boost_1_30_0\boost\date_time\posix_time\ptime.hpp(19) :
see reference to class template instantiation
'boost::date_time::base_time<T,time_system>' being compiled
        with
        [
            T=boost::posix_time::ptime,
            time_system=boost::posix_time::posix_time_system
        ]
c:\boost\boost_1_30_0\boost\date_time\gregorian_calendar.ipp(120) : warning
C4244: 'initializing' : conversion from 'unsigned long' to 'unsigned
short', possible loss of data
        c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\streambuf(250) : while compiling class-template member
function
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::ymd_type

boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::from_day_number(boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::date_int_type)'
        with
        [
            ymd_type_=boost::gregorian::greg_year_month_day,
            date_int_type_=boost::date_time::int_adapter<unsigned
long>::int_type
        ]
        c:
\boost\boost_1_30_0\boost\date_time\gregorian\greg_calendar.hpp(22) : see
reference to class template instantiation
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>' being
compiled
        with
        [
            ymd_type_=boost::gregorian::greg_year_month_day,
            date_int_type_=boost::date_time::int_adapter<unsigned
long>::int_type
        ]
c:\boost\boost_1_30_0\boost\date_time\gregorian_calendar.ipp(121) : warning
C4244: 'initializing' : conversion from 'unsigned long' to 'unsigned
short', possible loss of data
c:\boost\boost_1_30_0\boost\date_time\gregorian_calendar.ipp(125) : warning
C4244: 'argument' : conversion from
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::date_int_type'

to 'unsigned short', possible loss of data
        with
        [
            ymd_type_=boost::gregorian::greg_year_month_day,
            date_int_type_=boost::date_time::int_adapter<unsigned
long>::int_type
        ]
c:\boost\boost_1_30_0\boost\date_time\date_parsing.hpp(30) : warning C4244:
'argument' : conversion from 'int' to 'unsigned short', possible loss of
data
        c:\boost\boost_1_30_0\boost\date_time\gregorian\parsers.hpp(17) :
see reference to function template instantiation 'date_type
boost::date_time::parse_date<boost::gregorian::date>(const std::string &)'
being compiled
        with
        [
            date_type=boost::gregorian::date
        ]
c:\boost\boost_1_30_0\boost\date_time\date_parsing.hpp(31) : warning C4244:
'argument' : conversion from 'int' to 'unsigned short', possible loss of
data
c:\boost\boost_1_30_0\boost\date_time\date_parsing.hpp(32) : warning C4244:
'argument' : conversion from 'int' to 'unsigned short', possible loss of
data
c:\boost\boost_1_30_0\boost\date_time\date_parsing.hpp(54) : warning C4244:
'argument' : conversion from 'int' to 'unsigned short', possible loss of
data
        c:\boost\boost_1_30_0\boost\date_time\gregorian\parsers.hpp(22) :
see reference to function template instantiation 'date_type
boost::date_time::parse_undelimited_date<boost::gregorian::date>(const
std::string &)' being compiled
        with
        [
            date_type=boost::gregorian::date
        ]
c:\boost\boost_1_30_0\boost\date_time\date_parsing.hpp(55) : warning C4244:
'argument' : conversion from 'int' to 'unsigned short', possible loss of
data
c:\boost\boost_1_30_0\boost\date_time\date_parsing.hpp(56) : warning C4244:
'argument' : conversion from 'int' to 'unsigned short', possible loss of
data
c:\boost\boost_1_30_0\boost\date_time\time_parsing.hpp(103) : warning
C4244: 'initializing' : conversion from 'int' to 'short', possible loss of
data
        c:\boost\boost_1_30_0\boost\date_time\time_parsing.hpp(130) : see
reference to function template instantiation 'time_duration
boost::date_time::parse_undelimited_time_duration<time_duration>(const
std::string &)' being compiled
        with
        [
            time_duration=time_duration
        ]
        c:
\boost\boost_1_30_0\boost\date_time\posix_time\time_parsers.hpp(26) : see
reference to function template instantiation 'time_type
boost::date_time::parse_iso_time<boost::posix_time::ptime>(const
std::string &,char)' being compiled
        with
        [
            time_type=boost::posix_time::ptime
        ]
c:\boost\boost_1_30_0\boost\lexical_cast.hpp(147) : warning C4800: 'void *'
: forcing value to bool 'true' or 'false' (performance warning)
        c:\boost\boost_1_30_0\boost\lexical_cast.hpp(146) : while compiling
class-template member function 'bool
boost::detail::lexical_stream<Target,Source>::operator <<(const Source &)'
        with
        [
            Target=int,

Source=boost::token_iterator_generator<boost::char_delimiters_separator<char>,std::basic_string<char,std::char_traits<char>,std::allocator<char>>::const_iterator,std::string>::value_type
        ]
        c:\boost\boost_1_30_0\boost\lexical_cast.hpp(189) : see reference
to class template instantiation
'boost::detail::lexical_stream<Target,Source>' being compiled
        with
        [
            Target=int,

Source=boost::token_iterator_generator<boost::char_delimiters_separator<char>,std::basic_string<char,std::char_traits<char>,std::allocator<char>>::const_iterator,std::string>::value_type
        ]
        c:\boost\boost_1_30_0\boost\date_time\date_parsing.hpp(28) : see
reference to function template instantiation 'Target
boost::lexical_cast<int,boost::token_iterator_generator<TokenizerFunc,Iterator,Type>::value_type>(Source)'

being compiled
        with
        [
            Target=int,
            TokenizerFunc=boost::char_delimiters_separator<char>,

Iterator=std::basic_string<char,std::char_traits<char>,std::allocator<char>>::const_iterator,
            Type=std::string,

Source=boost::token_iterator_generator<boost::char_delimiters_separator<char>,std::basic_string<char,std::char_traits<char>,std::allocator<char>>::const_iterator,std::string>::value_type
        ]
        c:\boost\boost_1_30_0\boost\date_time\gregorian\parsers.hpp(17) :
see reference to function template instantiation 'date_type
boost::date_time::parse_date<boost::gregorian::date>(const std::string &)'
being compiled
        with
        [
            date_type=boost::gregorian::date
        ]
c:\boost\boost_1_30_0\boost\lexical_cast.hpp(147) : error C2679: binary '
<<' : no operator found which takes a right-hand operand of type 'const
boost::token_iterator_generator<TokenizerFunc,Iterator,Type>::value_type'
(or there is no acceptable conversion)
        with
        [
            TokenizerFunc=boost::char_delimiters_separator<char>,

Iterator=std::basic_string<char,std::char_traits<char>,std::allocator<char>>::const_iterator,
            Type=std::string
        ]
        c:\boost\boost_1_30_0\boost\lexical_cast.hpp(146) : while compiling
class-template member function 'bool
boost::detail::lexical_stream<Target,Source>::operator <<(const Source &)'
        with
        [
            Target=unsigned short,

Source=boost::token_iterator_generator<boost::char_delimiters_separator<char>,std::basic_string<char,std::char_traits<char>,std::allocator<char>>::const_iterator,std::string>::value_type
        ]
        c:\boost\boost_1_30_0\boost\lexical_cast.hpp(189) : see reference
to class template instantiation
'boost::detail::lexical_stream<Target,Source>' being compiled
        with
        [
            Target=unsigned short,

Source=boost::token_iterator_generator<boost::char_delimiters_separator<char>,std::basic_string<char,std::char_traits<char>,std::allocator<char>>::const_iterator,std::string>::value_type
        ]
        c:\boost\boost_1_30_0\boost\date_time\time_parsing.hpp(30) : see
reference to function template instantiation 'Target
boost::lexical_cast<unsigned
short,boost::token_iterator_generator<TokenizerFunc,Iterator,Type>::value_type>(Source)'

being compiled
        with
        [
            Target=unsigned short,
            TokenizerFunc=boost::char_delimiters_separator<char>,

Iterator=std::basic_string<char,std::char_traits<char>,std::allocator<char>>::const_iterator,
            Type=std::string,

Source=boost::token_iterator_generator<boost::char_delimiters_separator<char>,std::basic_string<char,std::char_traits<char>,std::alloca
tor<char>>::const_iterator,std::string>::value_type
        ]
        c:
\boost\boost_1_30_0\boost\date_time\posix_time\time_parsers.hpp(18) : see
reference to function template instantiation 'time_duration
boost::date_time::parse_delimited_time_duration<boost::posix_time::time_duration>(const

std::string &)' being compiled
        with
        [
            time_duration=boost::posix_time::time_duration
        ]

Build log was saved at "file://c:\dev\AuthStorm\Debug\BuildLog.htm"
AuthStorm - 1 error(s), 18 warning(s)

---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped

</results>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net