News for hackers. Stuff that matters.
Re:Misra C++:2023 Published by gpderetta on Sunday December 17, 2023 @04:22PM (#38676585)
Because two phase construction is a widely disliked idiom. Named constructors retuning optional objects are tolerable though.
Re:Misra C++:2023 Published by jupp0r on Sunday December 17, 2023 @05:27PM (#38677094)
Two phase construction isn't widely disliked, it's completely fine if it's used as an implementation detail of a factory.