Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69291 - trunk/libs/array/test
From: marshall_at_[hidden]
Date: 2011-02-25 20:35:50


Author: marshall
Date: 2011-02-25 20:35:48 EST (Fri, 25 Feb 2011)
New Revision: 69291
URL: http://svn.boost.org/trac/boost/changeset/69291

Log:
qualify array to avoid conflict with std::array; Refs #5233
Text files modified:
   trunk/libs/array/test/array2.cpp | 3 +--
   1 files changed, 1 insertions(+), 2 deletions(-)

Modified: trunk/libs/array/test/array2.cpp
==============================================================================
--- trunk/libs/array/test/array2.cpp (original)
+++ trunk/libs/array/test/array2.cpp 2011-02-25 20:35:48 EST (Fri, 25 Feb 2011)
@@ -15,12 +15,11 @@
 #include <boost/array.hpp>
 #include "print.hpp"
 using namespace std;
-using namespace boost;
 
 int main()
 {
     // create and initialize array
- array<int,10> a = { { 1, 2, 3, 4, 5 } };
+ boost::array<int,10> a = { { 1, 2, 3, 4, 5 } };
 
     print_elements(a);
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk