Re: [Boost-bugs] [Boost C++ Libraries] #4208: Boost::crc fails if Visual C++'s "/RTCc Convert to smaller type checks" is enabled

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4208: Boost::crc fails if Visual C++'s "/RTCc Convert to smaller type checks" is enabled
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-18 14:31:41


#4208: Boost::crc fails if Visual C++'s "/RTCc Convert to smaller type checks" is
enabled
---------------------------+------------------------------------------------
  Reporter: anonymous | Owner: dlwalker
      Type: Bugs | Status: closed
 Milestone: Boost 1.43.0 | Component: crc
   Version: Boost 1.44.0 | Severity: Problem
Resolution: wontfix | Keywords:
---------------------------+------------------------------------------------
Changes (by steven_watanabe):

  * status: new => closed
  * resolution: => wontfix

Comment:

 /RTCc yields non-conformant behavior. The behavior of the following
 program is well-defined (technically implementation defined since
 sizeof(short) is implementation defined) according to the C++ standard.
 In most
 implementations it will print 1.

 {{{
 #include <iostream>

 int main() {
     unsigned int i = 65537;
     unsigned short s = static_cast<unsigned short>(i);
     std::cout << s << std::endl;
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4208#comment:2>
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:50:03 UTC