You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should you find the following error: error: StaticClassId is not a member of TPZExample
chances are that TPZExample is an abstract class. If that is the case, follow these steps:
Create a static int TPZExample::StaticClassId()method.
Move the implementation of virtual int TPZExample::ClassId() to the recently created method.
Change the implementation of virtual int TPZExample::ClassId() to:
int TPZExample::ClassId(){
return TPZExample::StaticClassId();
}
Have a nice day!
The text was updated successfully, but these errors were encountered:
orlandini
changed the title
Every abstract class should implement a static int StaticClassId() method
Every abstract class should implement a static int StaticClassId() method
Sep 5, 2018
Should you find the following error:
error: StaticClassId is not a member of TPZExample
chances are that
TPZExample
is an abstract class. If that is the case, follow these steps:Create a
static int TPZExample::StaticClassId()
method.Move the implementation of
virtual int TPZExample::ClassId()
to the recently created method.Change the implementation of
virtual int TPZExample::ClassId()
to:Have a nice day!
The text was updated successfully, but these errors were encountered: