hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/examples/hello.sfinae
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-19 13:47:08 +0200
committerhachem <im@hachem.wtf>2026-09-19 13:47:08 +0200
commitd0ca03c84bcad3dc42fd173b0baf3a15e9b52f9b (patch)
tree89fa494129849e23b1d760466e87ef6046cbfcb4 /examples/hello.sfinae
parenta79c97e04562b171780a24cba2cb1a71acfa4bbb (diff)
feat: add conditionals
Diffstat (limited to 'examples/hello.sfinae')
-rw-r--r--examples/hello.sfinae8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/hello.sfinae b/examples/hello.sfinae
index 0be95fa..39f3a62 100644
--- a/examples/hello.sfinae
+++ b/examples/hello.sfinae
@@ -1,2 +1,8 @@
// prints 5
-::emit<::decltype(::difference<'F', 'A'>)>::commit;
+::emit<
+ ::conditional_t<
+ ::true_type::value,
+ ::decltype(::difference<'F', 'A'>),
+ ::void
+ >
+>::commit;