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