CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Template<> (

ata April 20, 2010 02:29

Hi FOAMers
In some files of OpenFOAM are templates without parameters, template<> and not template<class T>for example. An example is Scaler.H in $/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/primitives/Scalar
Can any one tell me what is this for?
Any help will be appreciated.
Best regards


l_r_mcglashan April 20, 2010 04:46

Have a look here:

what you're looking for is explained under template specialisation. Hope it helps.

ata April 20, 2010 07:31

Hi Laurence R. McGlashan
I hope you are well. Thank you very very much for your response.
Best regards


All times are GMT -4. The time now is 04:49.