История изменений
Исправление utf8nowhere, (текущая версия) :
reinterpret_cast не портируем же. Через static_cast и void* да, по правилам выходит, что можно.
reinterpret_cast это и есть static_cast через void* (в случае каста указателей)
http://eel.is/c++draft/expr.reinterpret.cast#7.sentence-2
When a prvalue
vof object pointer type is converted to the object pointer type “pointer to cv T”, the result isstatic_cast<cv T*>(static_cast<cv void*>(v)).
Исходная версия utf8nowhere, :
reinterpret_cast не портируем же. Через static_cast и void* да, по правилам выходит, что можно.
reinterpret_cast это есть static_cast через void*.
http://eel.is/c++draft/expr.reinterpret.cast#7.sentence-2
When a prvalue
vof object pointer type is converted to the object pointer type “pointer to cv T”, the result isstatic_cast<cv T*>(static_cast<cv void*>(v)).