VectorSpaces, MatrixSpaces: Allow automatic conversion from zero

This commit is contained in:
Henry Weller
2016-03-22 10:38:59 +00:00
parent 34361493f9
commit 554b965000
4 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ public:
//- Construct null //- Construct null
inline CompactSpatialTensor(); inline CompactSpatialTensor();
inline explicit CompactSpatialTensor(const Foam::zero); inline CompactSpatialTensor(const Foam::zero);
//- Construct given MatrixSpace of the same rank //- Construct given MatrixSpace of the same rank
inline CompactSpatialTensor inline CompactSpatialTensor

View File

@ -71,7 +71,7 @@ public:
//- Construct null //- Construct null
inline CompactSpatialTensorT(); inline CompactSpatialTensorT();
inline explicit CompactSpatialTensorT(const Foam::zero); inline CompactSpatialTensorT(const Foam::zero);
//- Construct given MatrixSpace of the same rank //- Construct given MatrixSpace of the same rank
inline CompactSpatialTensorT inline CompactSpatialTensorT

View File

@ -87,7 +87,7 @@ public:
inline SpatialTensor(); inline SpatialTensor();
//- Construct initialized to zero //- Construct initialized to zero
inline explicit SpatialTensor(const Foam::zero); inline SpatialTensor(const Foam::zero);
//- Construct given MatrixSpace of the same rank //- Construct given MatrixSpace of the same rank
inline SpatialTensor(const typename SpatialTensor::msType&); inline SpatialTensor(const typename SpatialTensor::msType&);

View File

@ -92,7 +92,7 @@ public:
inline SpatialVector(); inline SpatialVector();
//- Construct initialized to zero //- Construct initialized to zero
inline explicit SpatialVector(const Foam::zero); inline SpatialVector(const Foam::zero);
//- Construct given VectorSpace of the same rank //- Construct given VectorSpace of the same rank
inline SpatialVector(const typename SpatialVector::vsType&); inline SpatialVector(const typename SpatialVector::vsType&);