1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

functional/hash/hash.hpp インクルードガードのエラー修正

hash クラスの実装をデフォルトで提供
functional/hash/string.hpp テンプレートパラメータのエラー修正
This commit is contained in:
bolero-MURAKAMI 2011-10-29 11:05:42 +09:00
parent 41916cf0a5
commit 9d7eecc585
2 changed files with 22 additions and 9 deletions

View file

@ -7,7 +7,7 @@
#include <sprout/string.hpp>
namespace sprout {
template<typename T, std::size_t N, typename Traits = sprout::char_traits<T> >
template<typename T, std::size_t N, typename Traits>
SPROUT_CONSTEXPR std::size_t hash_value(sprout::basic_string<T, N, Traits> const& v) {
return sprout::hash_range(v.begin(), v.end());
}