Skip to content

Commit f23aa08

Browse files
committed
Use std::negate{}
1 parent d191c6e commit f23aa08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsrc/conversions.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ convert<bool, X>(J jt, array w, void *yv) -> bool {
130130
template <typename T>
131131
static auto
132132
inplace_negate(T *u, int64_t n) {
133-
std::transform(u, u + n, u, [](auto v) { return -v; });
133+
std::transform(u, u + n, u, std::negate{});
134134
}
135135

136136
template <>

0 commit comments

Comments
 (0)