Merge pull request #158 from kevgs/fix_unused_parameter

fix clang warning on unused function parameter
This commit is contained in:
Neil MacIntosh 2015-10-21 11:36:58 -07:00
commit 74fba29c0f

View File

@ -125,7 +125,7 @@ public:
template <typename OtherValueType, template <typename OtherValueType,
bool Enabled = (details::SizeTypeTraits<OtherValueType>::max_value > details::SizeTypeTraits<value_type>::max_value), bool Enabled = (details::SizeTypeTraits<OtherValueType>::max_value > details::SizeTypeTraits<value_type>::max_value),
typename Other = std::enable_if_t<Enabled, index<Rank, OtherValueType>>> typename Other = std::enable_if_t<Enabled, index<Rank, OtherValueType>>>
constexpr index(const index<Rank, OtherValueType>& other, void* ptr = 0) noexcept constexpr index(const index<Rank, OtherValueType>& other, void* = 0) noexcept
{ {
bool ok = std::accumulate(other.elems, other.elems + Rank, true, bool ok = std::accumulate(other.elems, other.elems + Rank, true,
[&](bool b, OtherValueType val) { return b && (val <= static_cast<OtherValueType>(details::SizeTypeTraits<value_type>::max_value)); } [&](bool b, OtherValueType val) { return b && (val <= static_cast<OtherValueType>(details::SizeTypeTraits<value_type>::max_value)); }