Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update smbase/array.h #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update smbase/array.h #7

wants to merge 1 commit into from

Conversation

AurimasF
Copy link

Fixes compilation with gcc 4.7

array.h: In instantiation of ‘void ArrayStack::push(const T&) [with T = BPBox_]’:
array.h:372:32: required from ‘void ObjArrayStack::push(T_) [with T = BPBox]’
boxprint.cc:371:39: required from here
array.h:261:7: error: ‘setIndexDoubler’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
array.h:261:7: note: declarations in dependent base ‘GrowArray<BPBox*>’ are not found by unqualified lookup
array.h:261:7: note: use ‘this->setIndexDoubler’ instead

Fixes compilation with gcc 4.7

array.h: In instantiation of ‘void ArrayStack<T>::push(const T&) [with T = BPBox*]’:
array.h:372:32:   required from ‘void ObjArrayStack<T>::push(T*) [with T = BPBox]’
boxprint.cc:371:39:   required from here
array.h:261:7: error: ‘setIndexDoubler’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
array.h:261:7: note: declarations in dependent base ‘GrowArray<BPBox*>’ are not found by unqualified lookup
array.h:261:7: note: use ‘this->setIndexDoubler’ instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant