|
[Sponsors] |
February 11, 2020, 04:57 |
Dont understand the syntax in the codes.
|
#1 |
Member
|
Hi,
I know how template is used in C++. However, in the following codes, I am not quite understand the line of "public ParcelType::template TrackingData<CloudType>". What is the keyword template is used for here? Code:
template<class CloudType> class TrackingData : public ParcelType::template TrackingData<CloudType> { public: enum trackPart
__________________
Kai |
|
February 11, 2020, 09:48 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
CloudType
The rest is to assure that the message I have entered is not too short, so that I can be allowed to push `Submit Reply` button.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 12, 2020, 12:34 |
|
#3 |
Member
|
Hi HPE,
Thank your for your answers. Could you please help me to understand the structure of codes Code:
public ParcelType::template TrackingData<CloudType>
__________________
Kai |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
what is syntax error : missing ')' before ';' | aleisia | Fluent UDF and Scheme Programming | 8 | March 10, 2015 16:42 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 04:23 |
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) | Yogini | Fluent UDF and Scheme Programming | 7 | October 3, 2012 08:24 |
syntax error on config.h | ehooi | Fluent UDF and Scheme Programming | 3 | November 9, 2011 11:05 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |