Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83509 - trunk/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2013-03-20 18:01:55


Author: viboes
Date: 2013-03-20 18:01:54 EDT (Wed, 20 Mar 2013)
New Revision: 83509
URL: http://svn.boost.org/trac/boost/changeset/83509

Log:
Chrono: Added BOOST_FORCEINLINE on duration,time_point constructors for TI compiler.
Text files modified:
   trunk/boost/chrono/duration.hpp | 6 +++---
   trunk/boost/chrono/time_point.hpp | 7 ++++---
   2 files changed, 7 insertions(+), 6 deletions(-)

Modified: trunk/boost/chrono/duration.hpp
==============================================================================
--- trunk/boost/chrono/duration.hpp (original)
+++ trunk/boost/chrono/duration.hpp 2013-03-20 18:01:54 EDT (Wed, 20 Mar 2013)
@@ -433,10 +433,10 @@
         rep rep_;
     public:
 
- BOOST_CONSTEXPR
+ BOOST_FORCEINLINE BOOST_CONSTEXPR
         duration() : rep_(duration_values<rep>::zero()) { }
         template <class Rep2>
- BOOST_SYMBOL_VISIBLE inline BOOST_CONSTEXPR
+ BOOST_SYMBOL_VISIBLE BOOST_FORCEINLINE BOOST_CONSTEXPR
         explicit duration(const Rep2& r
         , typename boost::enable_if <
                     mpl::and_ <
@@ -461,7 +461,7 @@
 
         // conversions
         template <class Rep2, class Period2>
- BOOST_CONSTEXPR
+ BOOST_FORCEINLINE BOOST_CONSTEXPR
         duration(const duration<Rep2, Period2>& d
         , typename boost::enable_if <
                     mpl::or_ <

Modified: trunk/boost/chrono/time_point.hpp
==============================================================================
--- trunk/boost/chrono/time_point.hpp (original)
+++ trunk/boost/chrono/time_point.hpp 2013-03-20 18:01:54 EDT (Wed, 20 Mar 2013)
@@ -168,16 +168,17 @@
         duration d_;
 
     public:
- BOOST_CONSTEXPR
+ BOOST_FORCEINLINE BOOST_CONSTEXPR
         time_point() : d_(duration::zero())
         {}
- BOOST_CONSTEXPR explicit time_point(const duration& d)
+ BOOST_FORCEINLINE BOOST_CONSTEXPR
+ explicit time_point(const duration& d)
             : d_(d)
         {}
 
         // conversions
         template <class Duration2>
- BOOST_CONSTEXPR
+ BOOST_FORCEINLINE BOOST_CONSTEXPR
         time_point(const time_point<clock, Duration2>& t
                 , typename boost::enable_if
                 <


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