From 2c2db2f50ef7a8aaa4cd14fd709eb9040bd47b21 Mon Sep 17 00:00:00 2001 From: Alex Campos Date: Fri, 10 May 2019 12:04:13 -0700 Subject: [PATCH] Add example code for T.48 --- CppCoreGuidelines.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index c1184c5..80938b0 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -17528,7 +17528,19 @@ Because that's the best we can do without direct concept support. ##### Example - enable_if + template + enable_if_t> + f(T v) + { + // ... + } + + // Equivalent to: + template + void f(T v) + { + // ... + } ##### Note