id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 7068,Compiler warnings in date_time,ZenJu ,az_sw_dude,"In reference to: https://svn.boost.org/trac/boost/ticket/7045 The following warnings are issued for GCC 4.6 and 4.7 both MinGW and Linux GCC with ""-wall"" for boost 1.50: {{{ C:\Program Files\C++\Boost\boost\date_time\gregorian\conversion.hpp||In function 'tm boost::gregorian::to_tm(const boost::gregorian::date&)':| C:\Program Files\C++\Boost\boost\date_time\gregorian\conversion.hpp|33|warning: enumeration value 'min_date_time' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\gregorian\conversion.hpp|33|warning: enumeration value 'max_date_time' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\gregorian\conversion.hpp|33|warning: enumeration value 'not_special' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\gregorian\conversion.hpp|33|warning: enumeration value 'NumSpecialValues' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\int_adapter.hpp||In instantiation of 'static boost::date_time::int_adapter boost::date_time::int_adapter::from_special(boost::date_time::special_values) [with int_type_ = unsigned int; boost::date_time::int_adapter = boost::date_time::int_adapter]':| C:\Program Files\C++\Boost\boost\date_time\gregorian\greg_date.hpp|53|required from here| C:\Program Files\C++\Boost\boost\date_time\int_adapter.hpp|75|warning: enumeration value 'not_special' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\int_adapter.hpp|75|warning: enumeration value 'NumSpecialValues' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\int_adapter.hpp||In instantiation of 'static boost::date_time::int_adapter boost::date_time::int_adapter::from_special(boost::date_time::special_values) [with int_type_ = long int; boost::date_time::int_adapter = boost::date_time::int_adapter]':| C:\Program Files\C++\Boost\boost\date_time\date_duration.hpp|42|required from 'boost::date_time::date_duration::date_duration(boost::date_time::special_values) [with duration_rep_traits = boost::date_time::duration_traits_adapted]'| C:\Program Files\C++\Boost\boost\date_time\gregorian\greg_duration.hpp|39|required from here| C:\Program Files\C++\Boost\boost\date_time\int_adapter.hpp|75|warning: enumeration value 'not_special' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\int_adapter.hpp|75|warning: enumeration value 'NumSpecialValues' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\int_adapter.hpp||In instantiation of 'static boost::date_time::int_adapter boost::date_time::int_adapter::from_special(boost::date_time::special_values) [with int_type_ = long long int; boost::date_time::int_adapter = boost::date_time::int_adapter]':| C:\Program Files\C++\Boost\boost\date_time\time_duration.hpp|69|required from 'boost::date_time::time_duration::time_duration(boost::date_time::special_values) [with T = boost::posix_time::time_duration; rep_type = boost::date_time::time_resolution_traits]'| C:\Program Files\C++\Boost\boost\date_time\posix_time\posix_time_config.hpp|82|required from here| C:\Program Files\C++\Boost\boost\date_time\int_adapter.hpp|75|warning: enumeration value 'not_special' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\int_adapter.hpp|75|warning: enumeration value 'NumSpecialValues' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\time_system_counted.hpp||In instantiation of 'static boost::date_time::counted_time_system::time_rep_type boost::date_time::counted_time_system::get_time_rep(boost::date_time::special_values) [with time_rep = boost::date_time::counted_time_rep; boost::date_time::counted_time_system::time_rep_type = boost::date_time::counted_time_rep]':| C:\Program Files\C++\Boost\boost\date_time\time.hpp|67|required from 'boost::date_time::base_time::base_time(boost::date_time::special_values) [with T = boost::posix_time::ptime; time_system = boost::date_time::counted_time_system >]'| C:\Program Files\C++\Boost\boost\date_time\posix_time\ptime.hpp|51|required from here| C:\Program Files\C++\Boost\boost\date_time\time_system_counted.hpp|149|warning: enumeration value 'not_special' not handled in switch [-Wswitch-enum]| C:\Program Files\C++\Boost\boost\date_time\time_system_counted.hpp|149|warning: enumeration value 'NumSpecialValues' not handled in switch [-Wswitch-enum]| }}} Also boost::thread has a linker dependency to boost::date_time on VC10 and VC11 (but not on GCC). It was indicated in the other ticket this might not be intended. Regards, ZenJu",Bugs,closed,To Be Determined,date_time,Boost 1.51.0,Problem,invalid,,zhnmju123@…