Commit 983b3e2c authored by Henry Weller's avatar Henry Weller
Browse files

VectorSpaces, MatrixSpaces: Allow automatic conversion from zero

parent b49a71a4
......@@ -202,7 +202,7 @@ public:
inline MatrixSpace();
//- Construct initialized to zero
inline explicit MatrixSpace(const Foam::zero);
inline MatrixSpace(const Foam::zero);
//- Construct as copy of a VectorSpace with the same size
template<class Form2, class Cmpt2>
......
......@@ -70,7 +70,7 @@ public:
inline RowVector();
//- Construct initialized to zero
inline explicit RowVector(const Foam::zero);
inline RowVector(const Foam::zero);
//- Construct given VectorSpace of the same rank
template<class Cmpt2>
......
......@@ -83,7 +83,7 @@ public:
inline SphericalTensor();
//- Construct initialized to zero
inline explicit SphericalTensor(const Foam::zero);
inline SphericalTensor(const Foam::zero);
//- Construct given VectorSpace
template<class Cmpt2>
......
......@@ -79,7 +79,7 @@ public:
inline SphericalTensor2D();
//- Construct initialized to zero
inline explicit SphericalTensor2D(const Foam::zero);
inline SphericalTensor2D(const Foam::zero);
//- Construct given VectorSpace
inline SphericalTensor2D
......
......@@ -83,7 +83,7 @@ public:
inline SymmTensor();
//- Construct initialized to zero
inline explicit SymmTensor(const Foam::zero);
inline SymmTensor(const Foam::zero);
//- Construct given VectorSpace of the same rank
template<class Cmpt2>
......
......@@ -83,7 +83,7 @@ public:
inline SymmTensor2D();
//- Construct initialized to zero
inline explicit SymmTensor2D(const Foam::zero);
inline SymmTensor2D(const Foam::zero);
//- Construct given VectorSpace
inline SymmTensor2D(const VectorSpace<SymmTensor2D<Cmpt>, Cmpt, 3>&);
......
......@@ -91,7 +91,7 @@ public:
inline Tensor();
//- Construct initialized to zero
inline explicit Tensor(const Foam::zero);
inline Tensor(const Foam::zero);
//- Construct given MatrixSpace of the same rank
template<class Cmpt2>
......
......@@ -86,7 +86,7 @@ public:
inline Tensor2D();
//- Construct initialized to zero
inline explicit Tensor2D(const Foam::zero);
inline Tensor2D(const Foam::zero);
//- Construct given VectorSpace
inline Tensor2D(const VectorSpace<Tensor2D<Cmpt>, Cmpt, 4>&);
......
......@@ -82,7 +82,7 @@ public:
inline Vector();
//- Construct initialized to zero
inline explicit Vector(const Foam::zero);
inline Vector(const Foam::zero);
//- Construct given VectorSpace of the same rank
template<class Cmpt2>
......
......@@ -76,7 +76,7 @@ public:
inline Vector2D();
//- Construct initialized to zero
inline explicit Vector2D(const Foam::zero);
inline Vector2D(const Foam::zero);
//- Construct given VectorSpace
inline Vector2D(const VectorSpace<Vector2D<Cmpt>, Cmpt, 2>&);
......
......@@ -154,7 +154,7 @@ public:
inline VectorSpace();
//- Construct initialized to zero
inline explicit VectorSpace(const Foam::zero);
inline VectorSpace(const Foam::zero);
//- Construct from Istream
VectorSpace(Istream&);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment