79417447

Date: 2025-02-06 10:01:08
Score: 0.5
Natty:
Report link

reinterpret_cast is the correct cast to use for non-typesafe pointer conversion. Your "plain" or "C-style" cast would do the same implicitly, however, kind of masking the type conversion.

Your specific compiler error, however, is more likely the result of casting constness. For those situations use const_cast (see reference).

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): is the
  • Low reputation (0.5):
Posted by: André