Skip to content

Fix usage of bit_cast

Gerhard Raven requested to merge fix-use-of-bit_cast into master
  • the second template argument (the 'source' type) should be deduced by the compiler. Only the first 'target' one should be specified.
  • specifying the second argument effectively introduces another static_cast from the actual argument type to the now specified argument type -- which could trigger unwanted conversions in case there is a mismatch.

Merge request reports

Loading