You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sources/modules/object-model/constructors.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ A student should be able to:
83
83
4. Demonstrate and explain safe memory handling using shared or unique pointers
84
84
5. Define what RAII is, the role of the constructor in it; and the relationship with its destructor
85
85
6. Use the explicit keyword to prevent accidental type conversion from a single argument, see [C.46](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-explicit)
86
-
7.Initialze data members with default values outside of the constructor and explain the benefit of why, see [C.48](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-explicit)
86
+
7.Initialize data members with default values outside of the constructor and explain the benefit of why, see [C.48](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rc-explicit)
87
87
88
88
#### Caveats
89
89
@@ -104,7 +104,7 @@ _These are important topics that are not expected to be covered but provide
104
104
guidance where one can continue to investigate this topic in more depth._
105
105
106
106
* Initialization requirements of data members not explicitly initialized via the initializer-list or NSDMIs, including references and non-trivial types
107
-
* Exceptions thrown in constructor, see [Execption handling](../error-handling/exception-handling.md)
107
+
* Exceptions thrown in constructor, see [Exception handling](../error-handling/exception-handling.md)
108
108
* Protected constructor prevents direct construction
109
109
* Constructors for classes with static members must be defined outside of the body of the class
110
110
* Non-static data member can be given a default value at initialization, but constructor take precedence
0 commit comments