aboutsummaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@colorado.edu>2018-11-03 21:15:05 -0600
committerLenny Maiorani <lenny@colorado.edu>2018-11-04 20:50:40 -0700
commit76e13b586ff690dd3312f719f305c0d1021cd505 (patch)
tree04fa746cd6c9b2cb088895df4ebe8144dfd5701d /src/hash.h
parent742ee213499194f97e59dae4971f1474ae7d57ad (diff)
warnings: Compiler warning on memset usage for non-trivial type
Problem: - IS_TRIVIALLY_CONSTRUCTIBLE macro does not work correctly resulting in `memset()` usage to set a non-trivial type to 0 when `nontrivial_t` is passed in from the tests. - Warning reported by GCC when compiling with `--enable-werror`. Solution: - Use the standard algorithm `std::fill_n()` and let the compiler determine the optimal way of looping or using `memset()`.
Diffstat (limited to 'src/hash.h')
0 files changed, 0 insertions, 0 deletions