mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: incorrect specialization namespace
This commit is contained in:
committed by
Andrew Heather
parent
925b9af20d
commit
29ccc00c7d
@ -29,17 +29,19 @@ License
|
|||||||
// * * * * * * * * * * * * Template Specializations * * * * * * * * * * * * //
|
// * * * * * * * * * * * * Template Specializations * * * * * * * * * * * * //
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
|
{
|
||||||
|
namespace expressions
|
||||||
{
|
{
|
||||||
#undef defineExpressionMethod
|
#undef defineExpressionMethod
|
||||||
#define defineExpressionMethod(Type, Var) \
|
#define defineExpressionMethod(Type, Var) \
|
||||||
template<> inline const Type& \
|
template<> \
|
||||||
expressions::exprResult::singleValue::get<Type>() const \
|
inline const Type& exprResult::singleValue::get<Type>() const \
|
||||||
{ \
|
{ \
|
||||||
return Var; \
|
return Var; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
template<> inline const Type& \
|
template<> \
|
||||||
expressions::exprResult::singleValue::set(const Type& val) \
|
inline const Type& exprResult::singleValue::set(const Type& val) \
|
||||||
{ \
|
{ \
|
||||||
Var = val; \
|
Var = val; \
|
||||||
return Var; \
|
return Var; \
|
||||||
@ -53,7 +55,9 @@ namespace Foam
|
|||||||
defineExpressionMethod(sphericalTensor, sphTensor_);
|
defineExpressionMethod(sphericalTensor, sphTensor_);
|
||||||
|
|
||||||
#undef defineExpressionMethod
|
#undef defineExpressionMethod
|
||||||
}
|
|
||||||
|
} // End namespace expressions
|
||||||
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|||||||
Reference in New Issue
Block a user