Update of /cvsroot/boost-sandbox/boost-sandbox/boost/units/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv3360/boost-sandbox/boost/units/detail
Modified Files:
dim_impl.hpp conversion_impl.hpp system_impl.hpp
Log Message:
Compare tags using mpl::less
Index: conversion_impl.hpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/detail/conversion_impl.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- conversion_impl.hpp 15 Apr 2007 07:07:15 -0000 1.8
+++ conversion_impl.hpp 29 Apr 2007 00:48:15 -0000 1.9
@@ -379,7 +379,7 @@
template<class T1, class V1, class T2, class V2>
struct less<heterogeneous_system_by_dimension_dim<T1, V1>, heterogeneous_system_by_dimension_dim<T2, V2> >
- : mpl::less<typename T1::value, typename T2::value>
+ : mpl::less<T1, T2>
{ };
template<class Tag, class L>
@@ -448,7 +448,7 @@
template<class T1, class V1, class T2, class V2>
struct less<heterogeneous_system_by_dimension_value<T1, V1>, heterogeneous_system_by_dimension_value<T2, V2> >
- : mpl::less<typename T1::value, typename T2::value>
+ : mpl::less<T1, T2>
{ };
template<class Tag, class L>
Index: system_impl.hpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/detail/system_impl.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- system_impl.hpp 12 Apr 2007 00:39:12 -0000 1.2
+++ system_impl.hpp 29 Apr 2007 00:48:15 -0000 1.3
@@ -96,7 +96,7 @@
template<class T1,class V1,class T2,class V2>
struct less< heterogeneous_system_element<T1,V1>,heterogeneous_system_element<T2,V2> >
{
- typedef typename boost::mpl::less<typename T1::value,typename T2::value>::type type;
+ typedef typename boost::mpl::less<T1,T2>::type type;
static const bool value = boost::is_same<type,boost::mpl::true_>::value;
};
Index: dim_impl.hpp
===================================================================
RCS file: /cvsroot/boost-sandbox/boost-sandbox/boost/units/detail/dim_impl.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- dim_impl.hpp 13 Apr 2007 06:08:52 -0000 1.4
+++ dim_impl.hpp 29 Apr 2007 00:48:15 -0000 1.5
@@ -73,7 +73,7 @@
template<typename T1,typename V1,typename T2,typename V2>
struct less< dim<T1,V1>,dim<T2,V2> >
{
- typedef typename boost::mpl::less<typename T1::value,typename T2::value>::type type;
+ typedef typename boost::mpl::less<T1,T2>::type type;
static const bool value = boost::is_same<type,boost::mpl::true_>::value;
};
|