mirror of
https://github.com/cpp-best-practices/cppbestpractices.git
synced 2025-12-17 11:14:35 +03:00
Adding comment about is_trivially_default_constructible
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user