Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77570 - trunk/boost/icl
From: afojgo_at_[hidden]
Date: 2012-03-26 16:56:58


Author: jofaber
Date: 2012-03-26 16:56:57 EDT (Mon, 26 Mar 2012)
New Revision: 77570
URL: http://svn.boost.org/trac/boost/changeset/77570

Log:
Fixed multiple definition error reported by Rajalakshmi Iyer.
Text files modified:
   trunk/boost/icl/gregorian.hpp | 8 ++++----
   trunk/boost/icl/ptime.hpp | 8 ++++----
   2 files changed, 8 insertions(+), 8 deletions(-)

Modified: trunk/boost/icl/gregorian.hpp
==============================================================================
--- trunk/boost/icl/gregorian.hpp (original)
+++ trunk/boost/icl/gregorian.hpp 2012-03-26 16:56:57 EDT (Mon, 26 Mar 2012)
@@ -77,12 +77,12 @@
 
 
     // ------------------------------------------------------------------------
- boost::gregorian::date operator ++(boost::gregorian::date& x)
+ inline boost::gregorian::date operator ++(boost::gregorian::date& x)
     {
         return x += boost::gregorian::date::duration_type::unit();
     }
 
- boost::gregorian::date operator --(boost::gregorian::date& x)
+ inline boost::gregorian::date operator --(boost::gregorian::date& x)
     {
         return x -= boost::gregorian::date::duration_type::unit();
     }
@@ -107,12 +107,12 @@
         typedef boost::gregorian::date_duration type;
     };
 
- boost::gregorian::date_duration operator ++(boost::gregorian::date_duration& x)
+ inline boost::gregorian::date_duration operator ++(boost::gregorian::date_duration& x)
     {
         return x += boost::gregorian::date::duration_type::unit();
     }
 
- boost::gregorian::date_duration operator --(boost::gregorian::date_duration& x)
+ inline boost::gregorian::date_duration operator --(boost::gregorian::date_duration& x)
     {
         return x -= boost::gregorian::date::duration_type::unit();
     }

Modified: trunk/boost/icl/ptime.hpp
==============================================================================
--- trunk/boost/icl/ptime.hpp (original)
+++ trunk/boost/icl/ptime.hpp 2012-03-26 16:56:57 EDT (Mon, 26 Mar 2012)
@@ -76,12 +76,12 @@
     };
 
     // ------------------------------------------------------------------------
- boost::posix_time::ptime operator ++(boost::posix_time::ptime& x)
+ inline boost::posix_time::ptime operator ++(boost::posix_time::ptime& x)
     {
         return x += boost::posix_time::ptime::time_duration_type::unit();
     }
 
- boost::posix_time::ptime operator --(boost::posix_time::ptime& x)
+ inline boost::posix_time::ptime operator --(boost::posix_time::ptime& x)
     {
         return x -= boost::posix_time::ptime::time_duration_type::unit();
     }
@@ -106,12 +106,12 @@
         typedef boost::posix_time::time_duration type;
     };
 
- boost::posix_time::time_duration operator ++(boost::posix_time::time_duration& x)
+ inline boost::posix_time::time_duration operator ++(boost::posix_time::time_duration& x)
     {
         return x += boost::posix_time::ptime::time_duration_type::unit();
     }
 
- boost::posix_time::time_duration operator --(boost::posix_time::time_duration& x)
+ inline boost::posix_time::time_duration operator --(boost::posix_time::time_duration& x)
     {
         return x -= boost::posix_time::ptime::time_duration_type::unit();
     }


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