Fixing bug on unqualified lookup

#9 Open
Repository
Branch
mleoni/fixArray
Repository
Branch
0.8.x

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

git checkout 0.8.x
git merge --no-ff -m 'Merged in mleoni/fixArray (pull request #9)' remotes/origin/mleoni/fixArray
Author
  1. Massimiliano Leoni
Reviewers
Description

Without this change, trying to do something like

Array<real> numbers(0,0,0);

yields

Array.h:47:16: error: 'push_back' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
       push_back(t0);
                ^
Array.h:47:16: note: declarations in dependent base 'std::vector<double, std::allocator<double> >' are not found by unqualified lookup
Array.h:47:16: note: use 'this->push_back' instead

Comments (0)