Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78006 - in trunk: boost/filesystem libs/filesystem/src
From: bdawes_at_[hidden]
Date: 2012-04-16 09:36:29


Author: bemandawes
Date: 2012-04-16 09:36:28 EDT (Mon, 16 Apr 2012)
New Revision: 78006
URL: http://svn.boost.org/trac/boost/changeset/78006

Log:
filesystem: Move compare() implementation to path.cpp, thus clearing gcc warning about header implementation of class with dll interface.
Text files modified:
   trunk/boost/filesystem/path.hpp | 9 ---------
   trunk/libs/filesystem/src/path.cpp | 5 +++++
   2 files changed, 5 insertions(+), 9 deletions(-)

Modified: trunk/boost/filesystem/path.hpp
==============================================================================
--- trunk/boost/filesystem/path.hpp (original)
+++ trunk/boost/filesystem/path.hpp 2012-04-16 09:36:28 EDT (Mon, 16 Apr 2012)
@@ -632,15 +632,6 @@
   BOOST_FILESYSTEM_DECL bool native(const std::string & name);
  
 //--------------------------------------------------------------------------------------//
-// class path inline member implementations //
-//--------------------------------------------------------------------------------------//
-
- inline int path::compare(const path& p) const BOOST_NOEXCEPT
- {
- return detail::lex_compare(begin(), end(), p.begin(), p.end());
- }
-
-//--------------------------------------------------------------------------------------//
 // class path member template implementation //
 //--------------------------------------------------------------------------------------//
 

Modified: trunk/libs/filesystem/src/path.cpp
==============================================================================
--- trunk/libs/filesystem/src/path.cpp (original)
+++ trunk/libs/filesystem/src/path.cpp 2012-04-16 09:36:28 EDT (Mon, 16 Apr 2012)
@@ -188,6 +188,11 @@
     return *this;
   }
 
+ int path::compare(const path& p) const BOOST_NOEXCEPT
+ {
+ return detail::lex_compare(begin(), end(), p.begin(), p.end());
+ }
+
 # ifdef BOOST_WINDOWS_API
 
   const std::string path::generic_string(const codecvt_type& cvt) const


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