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

Every abstract class should implement a static int StaticClassId() method #20

Open
orlandini opened this issue Sep 5, 2018 · 0 comments

Comments

@orlandini
Copy link
Member

orlandini commented 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:

  1. Create a static int TPZExample::StaticClassId()method.

  2. Move the implementation of virtual int TPZExample::ClassId() to the recently created method.

  3. Change the implementation of virtual int TPZExample::ClassId() to:

     int TPZExample::ClassId(){
         return TPZExample::StaticClassId();
     }
    

Have a nice day!

@orlandini 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant