Explicit constructor from double
This commit is contained in:
parent
49a6b1fdb3
commit
1939575a6b
2 changed files with 3 additions and 3 deletions
|
@ -166,10 +166,10 @@ public:
|
|||
inline FadOne();
|
||||
|
||||
//- Construct from value
|
||||
inline FadOne(const double& v);
|
||||
explicit inline FadOne(const double& v);
|
||||
|
||||
//- Construct from Istream
|
||||
inline FadOne(Istream&);
|
||||
explicit inline FadOne(Istream&);
|
||||
|
||||
//- Construct as copy
|
||||
inline FadOne(const FadOne<nVars>&);
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace Foam
|
|||
|
||||
/* * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * */
|
||||
|
||||
// Return a string representation of a complex
|
||||
// Return a string representation of a FadOne
|
||||
template<int nVars>
|
||||
word name(const FadOne<nVars>&);
|
||||
|
||||
|
|
Reference in a new issue