src/OpenFOAM: changed template rank type from int to Foam::direction

Foam::direction is an unsigned type which makes it easier for the
compiler to pickup and report errors in the instantiation of
VectorSpaces and associated types.
This commit is contained in:
Henry Weller
2016-03-09 10:10:28 +00:00
parent c28a0c0d94
commit 2027059b63
34 changed files with 355 additions and 237 deletions

View File

@ -61,7 +61,7 @@ void T(FieldField<Field, Type>& f1, const FieldField<Field, Type>& f2)
}
template<template<class> class Field, class Type, int r>
template<template<class> class Field, class Type, direction r>
void pow
(
FieldField<Field, typename powProduct<Type, r>::type>& f,
@ -74,7 +74,7 @@ void pow
}
}
template<template<class> class Field, class Type, int r>
template<template<class> class Field, class Type, direction r>
tmp<FieldField<Field, typename powProduct<Type, r>::type>>
pow
(
@ -90,7 +90,7 @@ pow
return tRes;
}
template<template<class> class Field, class Type, int r>
template<template<class> class Field, class Type, direction r>
tmp<FieldField<Field, typename powProduct<Type, r>::type>>
pow
(
@ -761,7 +761,13 @@ operator op \
} \
\
template \
<template<class> class Field, class Type, class Form, class Cmpt, int nCmpt> \
< \
template<class> class Field, \
class Type, \
class Form, \
class Cmpt, \
direction nCmpt \
> \
void opFunc \
( \
FieldField<Field, typename product<Type, Form>::type>& f, \
@ -776,7 +782,13 @@ void opFunc \
} \
\
template \
<template<class> class Field, class Type, class Form, class Cmpt, int nCmpt> \
< \
template<class> class Field, \
class Type, \
class Form, \
class Cmpt, \
direction nCmpt \
> \
tmp<FieldField<Field, typename product<Type, Form>::type>> \
operator op \
( \
@ -794,7 +806,13 @@ operator op \
} \
\
template \
<template<class> class Field, class Type, class Form, class Cmpt, int nCmpt> \
< \
template<class> class Field, \
class Type, \
class Form, \
class Cmpt, \
direction nCmpt \
> \
tmp<FieldField<Field, typename product<Type, Form>::type>> \
operator op \
( \
@ -813,7 +831,13 @@ operator op \
} \
\
template \
<template<class> class Field, class Form, class Cmpt, int nCmpt, class Type> \
< \
template<class> class Field, \
class Type, \
class Form, \
class Cmpt, \
direction nCmpt \
> \
void opFunc \
( \
FieldField<Field, typename product<Form, Type>::type>& f, \
@ -828,7 +852,13 @@ void opFunc \
} \
\
template \
<template<class> class Field, class Form, class Cmpt, int nCmpt, class Type> \
< \
template<class> class Field, \
class Type, \
class Form, \
class Cmpt, \
direction nCmpt \
> \
tmp<FieldField<Field, typename product<Form, Type>::type>> \
operator op \
( \
@ -846,7 +876,13 @@ operator op \
} \
\
template \
<template<class> class Field, class Form, class Cmpt, int nCmpt, class Type> \
< \
template<class> class Field, \
class Type, \
class Form, \
class Cmpt, \
direction nCmpt \
> \
tmp<FieldField<Field, typename product<Form, Type>::type>> \
operator op \
( \