Timeline for How to initialize all your references?
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 25, 2022 at 13:48 | comment | added | Doc Brown | Related: Should I use Dependency Injection or static factories?. I think my answer there can be applied here as well. | |
| Aug 13, 2013 at 11:59 | answer | added | Jan Hudec | timeline score: 5 | |
| Aug 13, 2013 at 9:41 | answer | added | Edward Shen | timeline score: 0 | |
| Jul 29, 2013 at 5:48 | comment | added | BЈовић | that is the only way to initialize references | |
| Jul 27, 2013 at 21:21 | answer | added | Vector | timeline score: 0 | |
| Jul 27, 2013 at 19:42 | comment | added | Christian Garbin |
Our constructor is massive Hum... Isn't the class too big for its own good? Perhaps it's time to revisit the design of that class. To answer the question: this initialization code is the recommended C++ way to initialize data members. See also stackoverflow.com/questions/6822422/….
|
|
| Jul 27, 2013 at 17:14 | comment | added | ratchet freak | no smart pointers? | |
| Jul 27, 2013 at 15:11 | history | asked | Bugster | CC BY-SA 3.0 |