util: Add EXPLICIT_CONVERSION macro.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 13 Feb 2018 00:32:20 +0000 (16:32 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 24 Feb 2018 23:28:36 +0000 (15:28 -0800)
commit8d1f1ce4124c1e0dbfc5f3d0578fbee6e24140c8
tree8c7c2a0d3c3a9c0a267a81791d5ea6f001bf5f41
parent378e918e2891b2712b64c4ad1ef92bfc539a13e7
util: Add EXPLICIT_CONVERSION macro.

This can be used to specify that a C++ conversion operator is not
meant to be used for implicit conversions, which can lead to
unintended loss of information in some cases.  Implemented as a macro
in order to keep old GCC versions happy.

Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
src/util/macros.h