Files
axyz/include/Engine/Core/Util/BoostPathHash.h
T
2015-11-30 17:02:24 +01:00

24 lines
431 B
C++

#ifndef BoostPathHash_h__
#define BoostPathHash_h__
namespace std
{
template<> struct hash<boost::filesystem::path>
{
size_t operator()(const boost::filesystem::path& p) const
{
return boost::filesystem::hash_value(p);
}
};
}
//struct BoostPathHash
//{
//
// template <typename T>
// std::size_t operator()(const boost::filesystem::path& p) const
// {
// return boost::filesystem::hash_value(p);
// }
//};
#endif