Subject: [Boost-bugs] [Boost C++ Libraries] #1285: [serialization] problem when including shared_ptr_132.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-26 23:08:08
#1285: [serialization] problem when including shared_ptr_132.hpp
-----------------------------------+----------------------------------------
Reporter: huangsean_at_[hidden] | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.34.1 | Severity: Showstopper
Keywords: |
-----------------------------------+----------------------------------------
It seems that the "using namespace ." statements in this and
shared_count_132.hpp trigger a problem in VC8 + SP1.
Try the following small program:
#include <boost/serialization/shared_ptr_132.hpp>
#include <boost/cstdint.hpp>
typedef unsigned short uint16_t;
int main(int argc, char* argv[])
{
uint16_t u;
return 0;
}
Will result in this error:
error C2872: 'uint16_t' : ambiguous symbol
It seems that the workaround implemented for Borland should be extended to
VC8 too:
#if !BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x560) ) using
namespace boost; #endif
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1285>
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:56 UTC