Proof Of Progress
Search ProofOfProgress Blog
Sunday, February 14, 2016
Are structs initialized to zero?
Research says that you shouldn't rely on this. Best to include a parameter-less constructor that zeros out all of the member values. The only downside being that it's not longer a POD type by C standards.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2017
(3)
►
August
(2)
►
July
(1)
▼
2016
(33)
►
June
(1)
►
May
(1)
►
April
(4)
►
March
(6)
▼
February
(14)
Enforce classes have same static method c++
Ownership of pointers in c++ and borrow boxes
Overload = operator c++
Are structs initialized to zero?
object lifetime of structs c++
+= operator overloading a struct
operator+ must take zero or one argument
Use structs when 16 bytes or under
Invalid use of destructor foo as type
Also useful for memory leak detection in C++
Com Vs Crt Leaks
Memory Leak Detection, pooling out of scope.
Mem Leak detection Part 2
Homebrew memory leak detection.
►
January
(7)
►
2015
(9)
►
March
(9)
►
2014
(9)
►
May
(9)
►
2012
(3)
►
August
(1)
►
January
(2)
►
2011
(61)
►
April
(25)
►
March
(16)
►
February
(17)
►
January
(3)
►
2010
(24)
►
December
(3)
►
November
(7)
►
October
(1)
►
August
(1)
►
June
(12)
My Blog List
Adam Chandler, 3D Artist
Goodbye to All That (2014)
9 years ago
Inside Outside & Upside Down
Pen To Paper
12 years ago
Sarah M. Grissom
Moving!
12 years ago
poly origami
Environment Progress
12 years ago
The Dan Machine
No comments:
Post a Comment