MSVC warning C4946 ("reinterpret_cast used between related classes") compiling json.hpp #1502
Labels
platform: visual studio
related to MSVC
release item: 🔨 further change
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
C4946 compiler warnings are generated when compiling json.hpp with MSVC. Note that this is an off-by-default warning but it is quite useful to detect redundant use of reinterpret_cast.
In this case it looks like the warnings are correct and the reinterpret_casts are unnecessary.
Just compile json.hpp with C4946 warnings enabled:
No warnings.
Warnings are generated.
Microsoft Visual Studio 2017 15.9.8 on Windows 10 1809.
develop
branch?The 3.5.0 release.
n/a
The text was updated successfully, but these errors were encountered: