Re: [Boost-bugs] [Boost C++ Libraries] #8634: boost/filesystem/path.hpp is not self-sufficient

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8634: boost/filesystem/path.hpp is not self-sufficient
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-11 08:49:32


#8634: boost/filesystem/path.hpp is not self-sufficient
----------------------------------------------+------------------------
  Reporter: Valentin Shtronda <valiko.ua@…> | Owner: bemandawes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: filesystem
   Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------+------------------------

Comment (by keen.benjamin.j@…):

 Problem still exists on 1.60.0, gcc 5.3.0 x86_64-unknown-linux-gnu (CentOS
 7)
 {{{
 // if #include <boost/functional/hash.hpp> absent, link error on
 boost::filesystem::hash_range
 // if present, no problem.
 // #include <boost/functional/hash.hpp>
 #include <boost/filesystem.hpp>

 namespace std {
     template <> struct hash<boost::filesystem::path>
     {
         size_t operator()(const boost::filesystem::path& p) const
         {
             return boost::filesystem::hash_value(p);
         }
     };
 }
 }}}

 For that matter, shouldn't the boost header put this specialization in the
 std:: namespace anyway?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8634#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC