Prevent copying with internal::noncopyable.

This commit is contained in:
Chen-Pang He
2013-07-07 19:34:13 +08:00
parent 9e2b4eeac0
commit 55ec3cc6d5
7 changed files with 13 additions and 29 deletions

View File

@@ -38,7 +38,7 @@ class MatrixPowerRetval : public ReturnByValue< MatrixPowerRetval<MatrixType> >
};
template<typename MatrixType>
class MatrixPowerAtomic
class MatrixPowerAtomic : internal::noncopyable
{
private:
enum {
@@ -257,7 +257,7 @@ MatrixPowerAtomic<MatrixType>::computeSuperDiag(RealScalar curr, RealScalar prev
* Output: \verbinclude MatrixPower_optimal.out
*/
template<typename MatrixType>
class MatrixPower
class MatrixPower : internal::noncopyable
{
private:
typedef typename MatrixType::Scalar Scalar;