Trilinos icon indicating copy to clipboard operation
Trilinos copied to clipboard

nox: overloaded-virtual warning

Open vjleung opened this issue 9 months ago • 2 comments

Trilinos/packages/nox/src/NOX_Abstract_Group.H:99:34: warning: 'virtual NOX::Abstract::Group& NOX::Abstract::Group::operator=(const NOX::Abstract::Group&)' was hidden [-Woverloaded-virtual=] 99 | virtual NOX::Abstract::Group& operator=(const NOX::Abstract::Group& source) = 0; | ^~~~~~~~ In file included from /home/vjleung/Trilinos/packages/nox/src-loca/src/LOCA_Abstract_Group.H:19: Trilinos/packages/nox/src-loca/src/LOCA_PhaseTransition_AbstractGroup.H:31:12: note: by 'LOCA::PhaseTransition::AbstractGroup& LOCA::PhaseTransition::AbstractGroup::operator=(const LOCA::PhaseTransition::AbstractGroup&)' 31 | class AbstractGroup : | ^~~~~~~~~~~~~

vjleung avatar Jul 23 '25 11:07 vjleung

I am not sure why this is a problem. The using statement should "unhide".

vjleung avatar Jul 28 '25 23:07 vjleung

@rppawlo , this might be the last overloaded-virtual warning. Do you know if there is there a simple fix? If we can get a fix through we can make it part of the warnings as errors.

ccober6 avatar Sep 16 '25 22:09 ccober6