Mercurial > hg > octave-nkf
diff liboctave/SparseQR.h @ 12153:e0e50f48df37
Explicitly disallow copying in some classes
author | Pascal Dupuis <Pascal.Dupuis@uclouvain.be> |
---|---|
date | Mon, 24 Jan 2011 14:57:07 -0500 |
parents | a21a3875ca83 |
children | 43cc49c7abd1 |
line wrap: on
line diff
--- a/liboctave/SparseQR.h +++ b/liboctave/SparseQR.h @@ -73,11 +73,22 @@ CXSPARSE_DNAME (n) *N; #endif + + private: + + // No copying! + + SparseQR_rep (const SparseQR_rep&); + + SparseQR_rep& operator = (const SparseQR_rep&); }; + private: + SparseQR_rep *rep; public: + SparseQR (void) : rep (new SparseQR_rep (SparseMatrix(), 0)) { } SparseQR (const SparseMatrix& a, int order = 0) :