COMP: specializations of templates within namespace Foam

- otherwise gets flagged as an error by clang
This commit is contained in:
Mark Olesen
2010-10-12 12:17:13 +02:00
parent 95219e6f76
commit ee0cb57cd9
2 changed files with 37 additions and 32 deletions

View File

@ -28,32 +28,35 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template<>
const char* const Foam::labelTensor::typeName = "labelTensor";
template<>
const char* Foam::labelTensor::componentNames[] =
namespace Foam
{
"xx", "xy", "xz",
"yx", "yy", "yz",
"zx", "zy", "zz"
};
template<>
const char* const Foam::labelTensor::typeName = "labelTensor";
template<>
const Foam::labelTensor Foam::labelTensor::zero
(
0, 0, 0,
0, 0, 0,
0, 0, 0
);
template<>
const char* Foam::labelTensor::componentNames[] =
{
"xx", "xy", "xz",
"yx", "yy", "yz",
"zx", "zy", "zz"
};
template<>
const Foam::labelTensor Foam::labelTensor::one
(
1, 1, 1,
1, 1, 1,
1, 1, 1
);
template<>
const Foam::labelTensor Foam::labelTensor::zero
(
0, 0, 0,
0, 0, 0,
0, 0, 0
);
template<>
const Foam::labelTensor Foam::labelTensor::one
(
1, 1, 1,
1, 1, 1,
1, 1, 1
);
}
// ************************************************************************* //

View File

@ -27,17 +27,19 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template<>
const char* const Foam::labelVector::typeName = "labelVector";
namespace Foam
{
template<>
const char* const Foam::labelVector::typeName = "labelVector";
template<>
const char* Foam::labelVector::componentNames[] = {"x", "y", "z"};
template<>
const char* Foam::labelVector::componentNames[] = {"x", "y", "z"};
template<>
const Foam::labelVector Foam::labelVector::zero(0, 0, 0);
template<>
const Foam::labelVector Foam::labelVector::one(1, 1, 1);
template<>
const Foam::labelVector Foam::labelVector::zero(0, 0, 0);
template<>
const Foam::labelVector Foam::labelVector::one(1, 1, 1);
}
// ************************************************************************* //