From e3fec18d318144545ef9d776dcb9bf3e851554c6 Mon Sep 17 00:00:00 2001 From: Olivia Date: Sun, 18 Jun 2017 12:53:53 +0200 Subject: [PATCH] Adding comment about is_trivially_default_constructible --- 03-Style.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/03-Style.md b/03-Style.md index 123406f..b8b1c61 100644 --- a/03-Style.md +++ b/03-Style.md @@ -271,8 +271,8 @@ private: }; // Good Idea -// There is a performance gain here because the default constructor -// for m_myOtherClass is never called. +// The default constructor for m_myOtherClass is never called here, so +// there is a performance gain if MyOtherClass is not is_trivially_default_constructible. class MyClass { public: