Skip to content

Commit 6e44a12

Browse files
committed
Swift: make enable_if_t a non-type parameter
This disallows completely calling the disabled function (which could be done by explicitly providing `void` otherwise).
1 parent 905cc23 commit 6e44a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/extractor/SwiftDispatcher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class SwiftDispatcher {
8383
return label;
8484
}
8585

86-
template <typename E, typename = std::enable_if_t<!std::is_pointer_v<E>>>
86+
template <typename E, std::enable_if_t<!std::is_pointer_v<E>>* = nullptr>
8787
TrapLabelOf<E> assignNewLabel(E& e) {
8888
return assignNewLabel(&e);
8989
}

0 commit comments

Comments
 (0)