2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00

Remove const qualifications that will confuse VC++'s buggy brain

[SVN r9567]
This commit is contained in:
Dave Abrahams
2001-03-16 21:56:41 +00:00
parent c068a300f4
commit 13b2e072d2

View File

@@ -55,7 +55,7 @@ namespace { // Avoid cluttering the global namespace.
// Function returning a vector_double object to Python.
//
std::vector<double> foo(const int n)
std::vector<double> foo(int n)
{
std::vector<double> vd(n);
std::vector<double>::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<std::vector<double> > bar(const int n)
std::auto_ptr<std::vector<double> > bar(int n)
{
std::auto_ptr<std::vector<double> > vdptr(new std::vector<double>(n));
std::vector<double>::iterator vditer = vdptr->begin();