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:
parent
49243e6c94
commit
57e35349e5
146 changed files with 459 additions and 499 deletions
|
@ -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(
|
||||
|
|
|
@ -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.)
|
||||
|
|
|
@ -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<>())
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue