Move all the boost/functional/hash/*.hpp files into a single file

(hash/hash.hpp for now, but will eventually move into hash.hpp), add warnings
that the old headers are deprecated.


[SVN r32778]
This commit is contained in:
Daniel James
2006-02-09 18:57:07 +00:00
parent 71641ebdcd
commit ffec55693b
14 changed files with 92 additions and 374 deletions
+2 -25
View File
@@ -15,30 +15,7 @@
# pragma once
#endif
#include <boost/config.hpp>
#include <boost/functional/hash/hash.hpp>
namespace boost
{
template <class T, class A>
std::size_t hash_value(std::vector<T, A> const& v)
{
return hash_range(v.begin(), v.end());
}
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
namespace hash_detail
{
template <class T, class A>
struct call_hash<std::vector<T, A> >
{
static std::size_t call(std::vector<T, A> const& val)
{
return boost::hash_value(val);
}
};
}
#endif
}
#warning "boost/functional/hash/vector.hpp is deprecated, use boost/functional/hash.hpp instead."
#include <boost/functional/hash.hpp>
#endif