Fixed ctor from const raw data for Matrices and added the missing implementation for Arrays.

Fixed a warning regarding the conversion from int to bool in MapBase.
This commit is contained in:
Hauke Heibel
2010-12-15 15:19:51 +01:00
parent 6a9a6bbc78
commit 6f5c45ceff
3 changed files with 10 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ template<typename Derived> class MapBase<Derived, ReadOnlyAccessors>
typedef typename internal::packet_traits<Scalar>::type PacketScalar;
typedef typename NumTraits<Scalar>::Real RealScalar;
typedef typename internal::conditional<
int(internal::traits<Derived>::Flags) & LvalueBit,
bool(int(internal::traits<Derived>::Flags) & LvalueBit),
Scalar *,
const Scalar *>::type
PointerType;