From 95ed86975193584da5463bc991b1ee4ba622e23a Mon Sep 17 00:00:00 2001 From: Thibault Kruse Date: Mon, 28 Sep 2015 14:38:53 +0200 Subject: [PATCH] fix: code within bullets must be indented 8 spaces See http://meta.stackexchange.com/questions/3792/how-to-nest-code-within-a-list-using-markdown --- CppCoreGuidelines.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index bab7125..8f4cd81 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -9390,25 +9390,25 @@ There are three major ways to let calling code customize a template. * Call a member function. Callers can provide any type with such a named member function. - template - void test(T t) { - t.f(); // require T to provide f() - } + template + void test(T t) { + t.f(); // require T to provide f() + } * Call a nonmember function without qualification. Callers can provide any type for which there is such a function available in the caller's context or in the namespace of the type. - template - void test(T t) { - f(t); // require f(/*T*/) be available in caller's cope or in T's namespace - } + template + void test(T t) { + f(t); // require f(/*T*/) be available in caller's cope or in T's namespace + } * Invoke a "trait" -- usually a type alias to compute a type, or a `constexpr` function to compute a value, or in rarer cases a traditional traits template to be specialized on the user's type. - template - void test(T t) { - test_traits::f(t); // require customizing test_traits<> to get non-default functions/types - test_traits::value_type x; - } + template + void test(T t) { + test_traits::f(t); // require customizing test_traits<> to get non-default functions/types + test_traits::value_type x; + } **Enforcement**: