id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 2045,lexical_cast of short unsigned produces warnigns with g++ and -Wsign-promo,aeriksson@…,nasonov,"{{{ #include void foo() { short unsigned int x; boost::lexical_cast(x); } }}} Compiled with g++ 4.2.0, boost 1.35.0, and the -Wsign-promo flag this produces the following warnings: {{{ /opt/boost/include/boost-1_35/boost/lexical_cast.hpp: In member function ‘bool boost::detail::lexical_stream_limited_src::operator<<(short unsigned int) [with CharT = char, Base = boost::detail::lexical_streambuf_fake, Traits = std::char_traits]’: /opt/boost/include/boost-1_35/boost/lexical_cast.hpp:1146: instantiated from ‘Target boost::detail::lexical_cast(typename boost::call_traits::param_type, CharT*, size_t) [with Target = std::basic_string, std::allocator >, Source = short unsigned int, bool Unlimited = false, CharT = char]’ /opt/boost/include/boost-1_35/boost/lexical_cast.hpp:1170: instantiated from ‘Target boost::lexical_cast(const Source&) [with Target = std::basic_string, std::allocator >, Source = short unsigned int]’ lexicalWarning.cpp:5: instantiated from here /opt/boost/include/boost-1_35/boost/lexical_cast.hpp:910: warning: passing ‘short unsigned int’ chooses ‘int’ over ‘long int’ /opt/boost/include/boost-1_35/boost/lexical_cast.hpp:910: warning: in call to ‘unsigned int boost::detail::lcast_to_unsigned(int)’ }}}",Bugs,closed,Boost 1.36.0,lexical_cast,Boost 1.35.0,Problem,worksforme,,