From 2d40c3ac2cd12fef988e5a63ec5aa2c29535322a Mon Sep 17 00:00:00 2001 From: alexcamposruiz Date: Thu, 30 May 2019 20:21:43 +0200 Subject: [PATCH] Add example code for T.48 (#1422) * Add example code for T.48 * Fix whitespace in end of line * Use better syntax for concept constraint * Revert "Use better syntax for concept constraint" This reverts commit f071920d7f9189909a59343aebe34e2db583a519. --- CppCoreGuidelines.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 50aa89f..49a1013 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