STYLE: relocate typeOfRank partial specialization to products.H

This commit is contained in:
Mark Olesen
2019-07-29 16:00:59 +02:00
committed by Andrew Heather
parent 4c91d068fa
commit b0ffdbcfb1
2 changed files with 23 additions and 21 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2011 OpenFOAM Foundation
@ -38,26 +38,6 @@ License
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
template<class Cmpt>
class typeOfRank<Cmpt, 0>
{
public:
typedef Cmpt type;
};
template<class Cmpt>
class symmTypeOfRank<Cmpt, 0>
{
public:
typedef Cmpt type;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//- Compare two values for equality

View File

@ -159,6 +159,28 @@ public:
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Partial Specializations for non-VectorSpace quantities
template<class Cmpt>
class typeOfRank<Cmpt, 0>
{
public:
typedef Cmpt type;
};
template<class Cmpt>
class symmTypeOfRank<Cmpt, 0>
{
public:
typedef Cmpt type;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam