Skip to content

Commit 035e86d

Browse files
author
contuandrea
committed
Add missing __hydra_dual__
1 parent 93a2385 commit 035e86d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/details/utils.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,9 @@ std::ostream& operator<<(std::ostream& os, const hydra::tuple<T...>& tup)
419419
}
420420

421421
//get sign
422-
template <typename T> int sgn(T val) {
422+
template <typename T>
423+
__hydra_dual__
424+
int sgn(T val) {
423425
return (T(0) < val) - (val < T(0));
424426
}
425427

0 commit comments

Comments
 (0)