Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1285: [serialization] problem when including shared_ptr_132.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-02-13 17:33:15
#1285: [serialization] problem when including shared_ptr_132.hpp
------------------------------------+---------------------------------------
Reporter: huangsean_at_[hidden] | Owner: ramey
Type: Bugs | Status: reopened
Milestone: To Be Determined | Component: serialization
Version: Boost 1.34.1 | Severity: Showstopper
Resolution: | Keywords:
------------------------------------+---------------------------------------
Changes (by Johan RÃ¥de):
* status: closed => reopened
* resolution: wontfix =>
Comment:
Using boost::uint16 instead of uint16_t is not a solution when the
problematic uint16_t occurs in some (possible deeply nested) third party
header.
Especially not when there are third party source files that depend on that
header.
Moreover, this problem is just a symptom of a more serious problem.
Including the header text_iarchive.hpp with Boost 1.35 and MSVC 7.1 has
the effect of dumping the entire content of namespace boost into the
global scope.
The following example illustrates that:
-----------------------------------
// Expected behavior: Should not compile
// Observed behavior with Boost 1.34.1 and MSVC 7.1: Does not compile
// Observed behavior with Boost 1.35 and MSVC 7.1: Does compile
#include <boost/shared_ptr.hpp>
#include <boost/archive/text_iarchive.hpp>
shared_ptr<int> sp;
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1285#comment:6>
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:57 UTC