aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-08-24 19:14:20 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-08-24 19:14:20 +0000
commit854d6e8458a379e1583f6e2c835263ca5bdb19a5 (patch)
tree0f17fe963f333f752d77af7edd3fb21aaacc108e /Eigen/src/Core
parent251ecc0ab9ee7bf923c5212ab93bdf02dc8156d7 (diff)
Documentation: fill the placeholders, add a custom CSS file,
add a reference to the tutorial in the main page.
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r--Eigen/src/Core/util/Meta.h11
1 files changed, 4 insertions, 7 deletions
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<typename T> struct ei_unconst { typedef T type; };
template<typename T> struct ei_unconst<const T> { typedef T type; };
template<typename T> struct ei_unconst<T const &> { typedef T & type; };
template<typename T> struct ei_unconst<T const *> { typedef T * type; };
-template<typename T> struct ei_unconst<T const volatile> { typedef T volatile type; };
-template<typename T> struct ei_unconst<T const volatile &> { typedef T volatile & type; };
-template<typename T> struct ei_unconst<T const volatile *> { typedef T volatile * type; };
template<typename T> struct ei_cleantype { typedef T type; };
template<typename T> struct ei_cleantype<const T> { typedef typename ei_cleantype<T>::type type; };
@@ -131,15 +128,15 @@ struct ei_result_of<Func(ArgType0,ArgType1)> {
*/
template<int Y,
int InfX = 0,
- int SupX = (Y==1 ? 1 : Y/2),
+ int SupX = ((Y==1) ? 1 : Y/2),
bool Done = (((SupX-InfX)<=1) || ( (SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > 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<Y,NewInf,NewSup>::ret };