Explicit constructor from double

This commit is contained in:
Hrvoje Jasak 2011-03-11 16:27:40 +00:00
parent 49a6b1fdb3
commit 1939575a6b
2 changed files with 3 additions and 3 deletions

View file

@ -166,10 +166,10 @@ public:
inline FadOne(); inline FadOne();
//- Construct from value //- Construct from value
inline FadOne(const double& v); explicit inline FadOne(const double& v);
//- Construct from Istream //- Construct from Istream
inline FadOne(Istream&); explicit inline FadOne(Istream&);
//- Construct as copy //- Construct as copy
inline FadOne(const FadOne<nVars>&); inline FadOne(const FadOne<nVars>&);

View file

@ -36,7 +36,7 @@ namespace Foam
/* * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * */ /* * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * */
// Return a string representation of a complex // Return a string representation of a FadOne
template<int nVars> template<int nVars>
word name(const FadOne<nVars>&); word name(const FadOne<nVars>&);