Commit 5285c349 authored by Khalique's avatar Khalique
Browse files

changed variables to values

parent ceea9124
......@@ -27,8 +27,8 @@ struct clip : unary<clip>
auto apply() const
{
auto& max = max_val;
auto& min = min_val;
auto max = max_val;
auto min = min_val;
return [max, min](auto x) {
using type = decltype(x);
return std::min(std::max(type(min), x), type(max));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment