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:
parent
41916cf0a5
commit
9d7eecc585
2 changed files with 22 additions and 9 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue