|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84289 - trunk/boost/date_time/posix_time
From: jhunold_at_[hidden]
Date: 2013-05-15 05:13:19
Author: jhunold
Date: 2013-05-15 05:13:17 EDT (Wed, 15 May 2013)
New Revision: 84289
URL: http://svn.boost.org/trac/boost/changeset/84289
Log:
add inline to avoid duplicate symbol warnings
Text files modified:
trunk/boost/date_time/posix_time/conversion.hpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Modified: trunk/boost/date_time/posix_time/conversion.hpp
==============================================================================
--- trunk/boost/date_time/posix_time/conversion.hpp (original)
+++ trunk/boost/date_time/posix_time/conversion.hpp 2013-05-15 05:13:17 EDT (Wed, 15 May 2013)
@@ -31,6 +31,7 @@
}
//! Function that converts a ptime into a time_t
+ inline
std::time_t to_time_t(ptime pt) {
time_duration dur = pt - ptime(gregorian::date(1970,1,1));
return std::time_t(dur.total_seconds ());
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