Fix operator<<(ostream,AlignedVector3)

This commit is contained in:
Gael Guennebaud 2015-07-13 13:55:59 +02:00
parent e6297741c9
commit b8df8815f4
2 changed files with 11 additions and 0 deletions

View File

@ -193,6 +193,12 @@ template<typename _Scalar> class AlignedVector3
namespace internal {
template<typename _Scalar>
struct eval<AlignedVector3<_Scalar>, Dense>
{
typedef const AlignedVector3<_Scalar>& type;
};
template<typename Scalar>
struct evaluator<AlignedVector3<Scalar> >
: evaluator<Matrix<Scalar,4,1> >::type

View File

@ -59,6 +59,11 @@ void alignedvector3()
f2.normalize();
r2.normalize();
VERIFY_IS_APPROX(f2,r2);
std::stringstream ss1, ss2;
ss1 << f1;
ss2 << r1;
VERIFY(ss1.str()==ss2.str());
}
void test_alignedvector3()