Re: [Boost-bugs] [Boost C++ Libraries] #2757: Warning C4244: conversion from 'int' to 'unsigned short' in microsec_time_clock.hpp line 103

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2757: Warning C4244: conversion from 'int' to 'unsigned short' in microsec_time_clock.hpp line 103
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-13 09:25:25


#2757: Warning C4244: conversion from 'int' to 'unsigned short' in
microsec_time_clock.hpp line 103
-------------------------------+--------------------------------------------
  Reporter: james_at_[hidden] | Owner: az_sw_dude
      Type: Bugs | Status: new
 Milestone: Boost 1.39.0 | Component: date_time
   Version: Boost 1.38.0 | Severity: Cosmetic
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment(by james_at_[hidden]):

 Line 99ff:
 {{{
 #!c
 ...
   std::tm curr;
   std::tm* curr_ptr = converter(&t, &curr);
   date_type
 d(static_cast<date_type::year_type::value_type>(curr_ptr->tm_year + 1900),
     static_cast<date_type::month_type::value_type>(curr_ptr->tm_mon + 1),
     static_cast<date_type::day_type::value_type>(curr_ptr->tm_mday));
 ...
 }}}

 This will suppress this warning.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2757#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:49:59 UTC