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 * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
namespace expressions
|
||||
{
|
||||
#undef defineExpressionMethod
|
||||
#define defineExpressionMethod(Type, Var) \
|
||||
template<> inline const Type& \
|
||||
expressions::exprResult::singleValue::get<Type>() const \
|
||||
template<> \
|
||||
inline const Type& exprResult::singleValue::get<Type>() const \
|
||||
{ \
|
||||
return Var; \
|
||||
} \
|
||||
\
|
||||
template<> inline const Type& \
|
||||
expressions::exprResult::singleValue::set(const Type& val) \
|
||||
template<> \
|
||||
inline const Type& exprResult::singleValue::set(const Type& val) \
|
||||
{ \
|
||||
Var = val; \
|
||||
return Var; \
|
||||
@ -53,7 +55,9 @@ namespace Foam
|
||||
defineExpressionMethod(sphericalTensor, sphTensor_);
|
||||
|
||||
#undef defineExpressionMethod
|
||||
}
|
||||
|
||||
} // End namespace expressions
|
||||
} // End namespace Foam
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user