Adding comment about is_trivially_default_constructible

This commit is contained in:
Olivia
2017-06-18 12:53:53 +02:00
parent f894e14e12
commit e3fec18d31

View File

@@ -271,8 +271,8 @@ private:
}; };
// Good Idea // Good Idea
// There is a performance gain here because the default constructor // The default constructor for m_myOtherClass is never called here, so
// for m_myOtherClass is never called. // there is a performance gain if MyOtherClass is not is_trivially_default_constructible.
class MyClass class MyClass
{ {
public: public: