enforce constness in map(), do only one const_cast, and improve API

This commit is contained in:
Benoit Jacob
2007-12-19 08:14:00 +00:00
parent 8bb98a80b4
commit 59be5c3124
2 changed files with 34 additions and 9 deletions

View File

@@ -95,9 +95,12 @@ template<typename Scalar, typename Derived> class MatrixBase
diagonal(const OtherDerived& coeffs);
DiagonalCoeffs<Derived> diagonal() const;
static Map<Derived> map(const Scalar* array, int rows, int cols);
static Map<Derived> map(const Scalar* array, int size);
static Map<Derived> map(const Scalar* array);
static const Map<Derived> map(const Scalar* array, int rows, int cols);
static const Map<Derived> map(const Scalar* array, int size);
static const Map<Derived> map(const Scalar* array);
static Map<Derived> map(Scalar* array, int rows, int cols);
static Map<Derived> map(Scalar* array, int size);
static Map<Derived> map(Scalar* array);
template<typename OtherDerived>
bool isApprox(