From 26f3ee9cfd5380c93dd6b641585242bfb6534518 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Mon, 11 Sep 2017 10:48:20 -0700 Subject: [PATCH] Fix #998. --- CppCoreGuidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 223e202..c73b2c9 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -20670,16 +20670,16 @@ Here is an example of the last option: class B { protected: B() { /* ... */ } - virtual void PostInitialize() // called right after construction + virtual void post_initialize() // called right after construction { /* ... */ f(); /* ... */ } // GOOD: virtual dispatch is safe public: virtual void f() = 0; template - static shared_ptr Create() // interface for creating objects + static shared_ptr create() // interface for creating objects { auto p = make_shared(); - p->PostInitialize(); + p->post_initialize(); return p; } };