Opened 14 years ago

Closed 14 years ago

#2608 closed Bugs (fixed)

shared_ptr_132.hpp introduces "using namespace boost" when included

Reported by: Chaker Nakhli (www.javageneration.com) Owned by: Robert Ramey
Milestone: Component: serialization
Version: Boost 1.36.0 Severity: Problem
Keywords: VC8 SP1 Cc:

Description

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.

Change History (1)

comment:1 by Robert Ramey, 14 years ago

Resolution: fixed
Status: newclosed

THis has been fixed in 1.37

Robert Ramey

Note: See TracTickets for help on using tickets.