[Boost-bugs] [Boost C++ Libraries] #2608: shared_ptr_132.hpp introduces "using namespace boost" when included

Subject: [Boost-bugs] [Boost C++ Libraries] #2608: shared_ptr_132.hpp introduces "using namespace boost" when included
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-12-23 09:40:48


#2608: shared_ptr_132.hpp introduces "using namespace boost" when included
----------------------------------------------------+-----------------------
 Reporter: Chaker Nakhli (www.javageneration.com) | Owner: ramey
     Type: Bugs | Status: new
Milestone: | Component: serialization
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: VC8 SP1 |
----------------------------------------------------+-----------------------
 On VC8.0 SP1 the following code compiles correctly wheras it shouldn't:


 {{{
 #include <boost/archive/text_iarchive.hpp>


 void main(int,char**)
 {
     //example 1
     boost::shared_ptr<int> sp1; //this is ok
     shared_ptr<int> sp2; //this shouldn't compile! namespace
 'boost' was used!

     //example 2
     boost::array<int,5> arr1; //this is ok
     array<int,5> arr2; //this shouldn't compile! namespace
 'boost' was used!
 }
 }}}

 Please note that the symbol "array" conflicts with C++ CLI cli::array.
 This prevents correct compilation in /clr mode.
 This ticket is related to ticket #1285.

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