[Boost-bugs] [Boost C++ Libraries] #2724: extended_type_info_arg constructor calls base constructor with wrong argument

Subject: [Boost-bugs] [Boost C++ Libraries] #2724: extended_type_info_arg constructor calls base constructor with wrong argument
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-04 01:19:23


#2724: extended_type_info_arg constructor calls base constructor with wrong
argument
----------------------------+-----------------------------------------------
 Reporter: kab_at_[hidden] | Owner: ramey
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: serialization
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
----------------------------+-----------------------------------------------
 In the file libs/serialization/src/extended_type_info.cpp, the constructor
 for the class extended_type_info_arg calls the base class constructor
 extended_type_info with an argument of NULL. The extended_type_info
 constructor takes an unsigned int argument, and NULL is not necessarily an
 unsigned int or even convertible to such. (See C.2.2.3 of C++98 standard.)
 Changing the argument to a constant 0 (or a named constant with that
 value) fixes the local problem, and doesn't conflict with either of the
 other existing classes derived from extended_type_info.

 I noticed this problem in 1.38beta2, due to a warning on one of the
 platforms I'm using, but it looks like it's been this way "forever".

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2724>
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