From 13b2e072d25cc3b7e11471afd3b8098a26c458ec Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Fri, 16 Mar 2001 21:56:41 +0000 Subject: [PATCH] Remove const qualifications that will confuse VC++'s buggy brain [SVN r9567] --- example/getting_started4.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/getting_started4.cpp b/example/getting_started4.cpp index 199ef7a9..cf6c2ff2 100644 --- a/example/getting_started4.cpp +++ b/example/getting_started4.cpp @@ -55,7 +55,7 @@ namespace { // Avoid cluttering the global namespace. // Function returning a vector_double object to Python. // - std::vector foo(const int n) + std::vector foo(int n) { std::vector vd(n); std::vector::iterator vditer = vd.begin(); @@ -65,7 +65,7 @@ namespace { // Avoid cluttering the global namespace. // Same as foo(), but avoid copying on return. // - std::auto_ptr > bar(const int n) + std::auto_ptr > bar(int n) { std::auto_ptr > vdptr(new std::vector(n)); std::vector::iterator vditer = vdptr->begin();