mirror of
https://https.git.savannah.gnu.org/git/groff.git
synced 2026-01-26 15:39:07 +00:00
HACKING: Add note about C++ value initializers.
This commit is contained in:
parent
140f7bbafc
commit
4ba2923fce
8
HACKING
8
HACKING
@ -28,6 +28,14 @@ Portability notes:
|
||||
template function in src/include/lib.h instead of `sizeof` and
|
||||
dividing.
|
||||
|
||||
* C++98 lacks value initialization for array types.
|
||||
|
||||
https://cplusplus.github.io/CWG/issues/178.html
|
||||
|
||||
Use `memset()` after allocating an array from the stack or the heap
|
||||
unless you are sure that every path through subsequent logic
|
||||
determines the contents of every array element.
|
||||
|
||||
|
||||
Automake
|
||||
--------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user