Fixing bug on unqualified lookup

Open
#9 · Created  · Last updated

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

 

0 attachments

0 comments

Loading commits...