Home > Back-end >  CB6 compiled template class, didn't identify?
CB6 compiled template class, didn't identify?

Time:09-25

The main program of
Void iniGeometry (BlockLattice3D & lt; T, DESCRIPTOR> & Lattice,
LBunits Const& The converter,
Dynamics & BulkDynamics,
OnLatticeBoundaryCondition3D & lt; T, DESCRIPTOR> & BC)
{
.
}
Header file
Template The class Lattice>
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 change

CodePudding 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
  • Related