From 854d6e8458a379e1583f6e2c835263ca5bdb19a5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 24 Aug 2008 19:14:20 +0000 Subject: Documentation: fill the placeholders, add a custom CSS file, add a reference to the tutorial in the main page. --- Eigen/src/Core/util/Meta.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'Eigen/src/Core') diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h index 3ee24fb7a..6616e3c5e 100644 --- a/Eigen/src/Core/util/Meta.h +++ b/Eigen/src/Core/util/Meta.h @@ -56,9 +56,6 @@ template struct ei_unconst { typedef T type; }; template struct ei_unconst { typedef T type; }; template struct ei_unconst { typedef T & type; }; template struct ei_unconst { typedef T * type; }; -template struct ei_unconst { typedef T volatile type; }; -template struct ei_unconst { typedef T volatile & type; }; -template struct ei_unconst { typedef T volatile * type; }; template struct ei_cleantype { typedef T type; }; template struct ei_cleantype { typedef typename ei_cleantype::type type; }; @@ -131,15 +128,15 @@ struct ei_result_of { */ template Y))) > class ei_meta_sqrt { enum { MidX = (InfX+SupX)/2, - TakeInf = MidX*MidX > Y, - NewInf = TakeInf ? InfX : MidX, - NewSup = TakeInf ? MidX : SupX + TakeInf = MidX*MidX > Y ? 1 : 0, + NewInf = int(TakeInf) ? InfX : int(MidX), + NewSup = int(TakeInf) ? int(MidX) : SupX }; public: enum { ret = ei_meta_sqrt::ret }; -- cgit v1.2.3