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

fix warning (for -Wextra)

This commit is contained in:
bolero-MURAKAMI 2013-07-22 22:00:09 +09:00
parent 49243e6c94
commit 57e35349e5
146 changed files with 459 additions and 499 deletions

View file

@ -39,13 +39,13 @@ namespace sprout {
}
template<typename Outdirected>
SPROUT_CONSTEXPR typename std::iterator_traits<Outdirected>::value_type
calc_1(Outdirected const& x, value_type const& tau, value_type const& t) const {
calc_1(Outdirected const& x, value_type const& t) const {
return calc_2(x, static_cast<typename Outdirected::index_type>(t), t - static_cast<typename Outdirected::index_type>(t));
}
template<typename Outdirected>
SPROUT_CONSTEXPR typename std::iterator_traits<Outdirected>::value_type
calc(Outdirected const& x, value_type const& tau) const {
return calc_1(x, tau, x.index() - tau);
return calc_1(x, x.index() - tau);
}
public:
SPROUT_CONSTEXPR chorus_outdirected_value(

View file

@ -68,7 +68,7 @@ namespace sprout {
}
template<typename Range>
inline SPROUT_CONSTEXPR auto
operator|(Range&& lhs, sprout::compost::effects::clipped_forwarder const& rhs)
operator|(Range&& lhs, sprout::compost::effects::clipped_forwarder const&)
-> decltype(
sprout::forward<Range>(lhs)
| sprout::adaptors::clamped(-1., 1.)

View file

@ -49,7 +49,7 @@ namespace sprout {
//
template<typename Range>
inline SPROUT_CONSTEXPR auto
operator|(Range&& lhs, sprout::compost::effects::rectified_forwarder const& rhs)
operator|(Range&& lhs, sprout::compost::effects::rectified_forwarder const&)
-> decltype(
sprout::forward<Range>(lhs)
| sprout::adaptors::transformed(sprout::compost::rectify_value<>())

View file

@ -38,13 +38,13 @@ namespace sprout {
}
template<typename Outdirected>
SPROUT_CONSTEXPR typename std::iterator_traits<Outdirected>::value_type
calc_1(Outdirected const& x, value_type const& tau, value_type const& t) const {
calc_1(Outdirected const& x, value_type const& t) const {
return calc_2(x, static_cast<typename Outdirected::index_type>(t), t - static_cast<typename Outdirected::index_type>(t));
}
template<typename Outdirected>
SPROUT_CONSTEXPR typename std::iterator_traits<Outdirected>::value_type
calc(Outdirected const& x, value_type const& tau) const {
return calc_1(x, tau, x.index() - tau);
return calc_1(x, x.index() - tau);
}
public:
SPROUT_CONSTEXPR vibrato_outdirected_value(