Yu:

classFracturePhaseFieldProblem

{

     public:

…

     private:

…

void output_results () const;

class Postprocessor;

This is what's called a "forward declaration". The line really just says "There is a class Postprocessor" but because you don't provide the details in a {...} block, the compiler knows nothing about it.


…

};

However when I want to declare a variable as the type FracturePhaseFieldProblem<2>::Postprocessor in functionoutput_results (),I got the error:

error: cannot declare variable ‘postprocessor’ to be of abstract type ‘FracturePhaseFieldProblem<2>::Postprocessor’

And here the compiler is telling you "You're trying to create a variable of this type. I know is that the class *exists*, but in order to create a variable of this type, I need to know *what the class does* and what its member variables are".

Best
 W.

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/f20f8331-f3f6-470c-a36e-98069635a588%40colostate.edu.

Reply via email to