Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80045 - trunk/libs/ratio/example
From: vicente.botet_at_[hidden]
Date: 2012-08-15 06:40:59


Author: viboes
Date: 2012-08-15 06:40:58 EDT (Wed, 15 Aug 2012)
New Revision: 80045
URL: http://svn.boost.org/trac/boost/changeset/80045

Log:
Ratio: fix Tab inspection
Text files modified:
   trunk/libs/ratio/example/duration.hpp | 48 ++++++++++++++++++++--------------------
   1 files changed, 24 insertions(+), 24 deletions(-)

Modified: trunk/libs/ratio/example/duration.hpp
==============================================================================
--- trunk/libs/ratio/example/duration.hpp (original)
+++ trunk/libs/ratio/example/duration.hpp 2012-08-15 06:40:58 EDT (Wed, 15 Aug 2012)
@@ -72,7 +72,7 @@
 
 namespace boost_ex {
     using boost::ratio;
-
+
 namespace chrono {
 
   template <class Rep, class Period = ratio<1> >
@@ -387,22 +387,22 @@
     struct chrono_numeric_limits {
         static T lowest() throw() {return (std::numeric_limits<T>::min) ();}
     };
-
+
     template <class T>
     struct chrono_numeric_limits<T,true> {
         static T lowest() throw() {return (std::numeric_limits<T>::min) ();}
     };
-
+
     template <>
     struct chrono_numeric_limits<float,true> {
         static float lowest() throw() {return -(std::numeric_limits<float>::max) ();}
     };
-
+
     template <>
     struct chrono_numeric_limits<double,true> {
         static double lowest() throw() {return -(std::numeric_limits<double>::max) ();}
     };
-
+
     template <>
     struct chrono_numeric_limits<long double,true> {
         static long double lowest() throw() {return -(std::numeric_limits<long double>::max)();}
@@ -410,14 +410,14 @@
 
     template <class T>
     struct numeric_limits : chrono_numeric_limits<typename boost::remove_cv<T>::type> {};
-
- }
+
+ }
   template <class Rep>
   struct duration_values
   {
       static Rep zero() {return Rep(0);}
       static Rep max BOOST_PREVENT_MACRO_SUBSTITUTION () {return (std::numeric_limits<Rep>::max)();}
-
+
       static Rep min BOOST_PREVENT_MACRO_SUBSTITUTION () {return detail::numeric_limits<Rep>::lowest();}
   };
 
@@ -443,7 +443,7 @@
 //----------------------------------------------------------------------------//
 
 namespace boost_ex {
-
+
 namespace chrono {
 
     template <class Rep, class Period>
@@ -464,12 +464,12 @@
          explicit duration(const Rep2& r
 #if (defined(BOOST_MSVC) && (BOOST_MSVC == 1500)) || defined(__IBMCPP__)
 #else
- , typename boost::enable_if <
- boost::mpl::and_ <
+ , typename boost::enable_if <
+ boost::mpl::and_ <
                         boost::is_convertible<Rep2, rep>,
                         boost::mpl::or_ <
                             treat_as_floating_point<rep>,
- boost::mpl::and_ <
+ boost::mpl::and_ <
                                 boost::mpl::not_ < treat_as_floating_point<rep> >,
                                 boost::mpl::not_ < treat_as_floating_point<Rep2> >
>
@@ -477,7 +477,7 @@
>
>::type* = 0
 #endif
- )
+ )
                   : rep_(r) { }
         ~duration() {} //= default;
         duration(const duration& rhs) : rep_(rhs.rep_) {} // = default;
@@ -492,17 +492,17 @@
          duration(const duration<Rep2, Period2>& d
 #if (defined(BOOST_MSVC) && (BOOST_MSVC == 1500)) || defined(__IBMCPP__)
 #else
- , typename boost::enable_if <
- boost::mpl::or_ <
+ , typename boost::enable_if <
+ boost::mpl::or_ <
                         treat_as_floating_point<rep>,
- boost::mpl::and_ <
+ boost::mpl::and_ <
                             boost::mpl::bool_ < boost::ratio_divide<Period2, period>::type::den == 1>,
                             boost::mpl::not_ < treat_as_floating_point<Rep2> >
>
>
>::type* = 0
 #endif
- )
+ )
 //~ #ifdef __GNUC__
             // GCC 4.2.4 refused to accept a definition at this point,
             // yet both VC++ 9.0 SP1 and Intel ia32 11.0 accepted the definition
@@ -580,13 +580,13 @@
     duration<typename boost::common_type<Rep1, Rep2>::type, Period>
 #else
 typename boost::enable_if <
- boost::mpl::and_ <
- boost::is_convertible<Rep1, typename boost::common_type<Rep1, Rep2>::type>,
+ boost::mpl::and_ <
+ boost::is_convertible<Rep1, typename boost::common_type<Rep1, Rep2>::type>,
         boost::is_convertible<Rep2, typename boost::common_type<Rep1, Rep2>::type>
>,
     duration<typename boost::common_type<Rep1, Rep2>::type, Period>
>::type
-#endif
+#endif
   operator*(const duration<Rep1, Period>& d, const Rep2& s)
   {
       typedef typename boost::common_type<Rep1, Rep2>::type CR;
@@ -601,13 +601,13 @@
     duration<typename boost::common_type<Rep1, Rep2>::type, Period>
 #else
   typename boost::enable_if <
- boost::mpl::and_ <
+ boost::mpl::and_ <
         boost::is_convertible<Rep1, typename boost::common_type<Rep1, Rep2>::type>,
         boost::is_convertible<Rep2, typename boost::common_type<Rep1, Rep2>::type>
>,
     duration<typename boost::common_type<Rep1, Rep2>::type, Period>
>::type
-#endif
+#endif
   operator*(const Rep1& s, const duration<Rep2, Period>& d)
   {
       return d * s;
@@ -788,12 +788,12 @@
     ToDuration
 #else
   typename boost::enable_if <boost_ex::chrono::detail::is_duration<ToDuration>, ToDuration>::type
-#endif
+#endif
   duration_cast(const duration<Rep, Period>& fd)
   {
       return boost_ex::chrono::detail::duration_cast<duration<Rep, Period>, ToDuration>()(fd);
   }
 
-}
+}
 }
 #endif // BOOST_EX_CHRONO_DURATION_HPP


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk