Boost logo

Boost Users :

From: A Johan (ajohan75_at_[hidden])
Date: 2005-11-24 00:13:25


Good day everyone,

i'm using the boost::date_time::posix_time libarary in my application.
When ever i compile i get lots of warning. mostly its about not being
able to generate copy constructors from the lexical_cast lbrary and a
whole lot of "C4127 conditional experssion is constant.

OS: windows 2000 server
Compiler: MSVC 7.1

is this normal or am i missing something here? the boost lib was
compiled with the msvc_71 toolset.

D:\boost_1_33_0\boost\lexical_cast.hpp(191) : warning C4511:
'boost::detail::lexical_stream<Target,Source>' : copy constructor
could not be generated
        with
        [
            Target=short,
            Source=NewSource
        ]
        D:\boost_1_33_0\boost\lexical_cast.hpp(218) : see reference to
class template instantiation
'boost::detail::lexical_stream<Target,Source>' being compiled
        with
        [
            Target=short,
            Source=NewSource
        ]
        D:\boost_1_33_0\boost\date_time\time_parsing.hpp(201) : see
reference to function template instantiation 'Target
boost::lexical_cast<short,Type>(const Source &)' being compiled
        with
        [
            Target=short,
            Type=std::string,
            Source=std::string
        ]
        D:\boost_1_33_0\boost\date_time\time_parsing.hpp(275) : 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
        ]
        D:\boost_1_33_0\boost\date_time\posix_time\time_parsers.hpp(35)
: 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
        ]
D:\boost_1_33_0\boost\lexical_cast.hpp(191) : warning C4512:
'boost::detail::lexical_stream<Target,Source>' : assignment operator
could not be generated
        with
        [
            Target=short,
            Source=NewSource
        ]
D:\boost_1_33_0\boost\lexical_cast.hpp(137) : warning C4127:
conditional expression is constant
        D:\boost_1_33_0\boost\lexical_cast.hpp(133) : while compiling
class-template member function
'boost::detail::lexical_stream<Target,Source>::lexical_stream(void)'
        with
        [
            Target=short,
            Source=NewSource
        ]
        D:\boost_1_33_0\boost\lexical_cast.hpp(218) : see reference to
class template instantiation
'boost::detail::lexical_stream<Target,Source>' being compiled
        with
        [
            Target=short,
            Source=NewSource
        ]
        D:\boost_1_33_0\boost\date_time\time_parsing.hpp(201) : see
reference to function template instantiation 'Target
boost::lexical_cast<short,Type>(const Source &)' being compiled
        with
        [
            Target=short,
            Type=std::string,
            Source=std::string
        ]
D:\boost_1_33_0\boost\lexical_cast.hpp(139) : warning C4127:
conditional expression is constant

cheers.


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