Void iniGeometry (BlockLattice3D & lt; T, DESCRIPTOR> & Lattice,
LBunits
Dynamics
OnLatticeBoundaryCondition3D & lt; T, DESCRIPTOR> & BC)
{
.
}
Header file
Template
The class BlockLattice3D: public BlockStructure3D & lt; T, Lattice> {
. }
A compile-time Error as a result, according to [c + + Error] E2451 Undefined symbol 'BlockLattice3D'
CodePudding user response:
BCB6, this stuff is too old, only heard of, if support c + + templates, but support is not good, according to the syntax of the format to modify it, if don't support template, change the compiler,CodePudding user response:
Can try to find a generic library installed, in Delphi, a DGL generic library, support Delphi7, don't know CB6 support does not support,,,CodePudding user response:
: public BlockStructure3D & lt; T, Lattice> The place to template parameters to real changeCodePudding user response:
The above said wrong
The template & lt; The class T, the template & lt; The class T> The class r>
The class BlockStructure3D
{
Public:
T a;
};
The template & lt; The class T, the template & lt; The class U> The class Lattice>
The class BlockLattice3D: public BlockStructure3D & lt; T, Lattice>
{
};
It can pass, see your parent BlockStructure3D statement