Hello!
I'm trying to derive a class "InfFEwith2D" from class "InfFE" but
compiling my code will end up with the error:
"./include/inf_fe_with_2D.H:68: error: expected class-name before ‘{’ token"
Here is my Code:
#ifndef _inf_fe_with_2D_h_
#define _inf_fe_with_2D_h_
//----Own includes----------------------------------------------------
#include "inf_fe_with_2D.H"
//----C++ includes----------------------------------------------------
//----libmesh includes------------------------------------------------
#include "libmesh_config.h"
#include "quadrature_gauss.h"
#include "elem.h"
#include "libmesh_logging.h"
#include "libmesh_config.h"
#include "inf_fe.h"
#include "fe_base.h"
#ifdef ENABLE_INFINITE_ELEMENTS
// forward declarations
class Elem;
class FEComputeData;
template <unsigned int Dim, FEFamily T_radial, InfMapType T_map>
class InfFE;
class FEBase;
//-------------------------------------------------------------
// InfFE class definition
template <unsigned int Dim, FEFamily T_radial, InfMapType T_map>
class InfFEwith2D : public InfFE
{
public:
InfFEwith2D(const FEType& fet);
~InfFEwith2D();
};
#endif //ifdef ENABLE_INFINITE_ELEMENTS
#endif
The Code can be compiled without error if I just derive from class
"FEBase" - but that's not my intention...
Is the compiler error due to the nested classes "Radial" and "Base" in
class "InfFE"?
I appreciate any suggestions - Thank's in advance...
Mathias Nenning
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Libmesh-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-devel