简而言之,static_cast<> 将尝试转换,举例来说,如float-到-integer,而reinterpret_cast<>简单改变编译器的意图重新考虑那个对象作为另一类型。 简而言之,static_cast<> 将尝试转换,举例来说,如float-到-integer
简而言之,static_cast<> 将尝试转换,举例来说,如float-到-integer,而reinterpret_cast<>简单改变编译器的意图重新考虑那个对象作为另一类型。 简而言之,static_cast<> 将尝试转换,举例来说,如float-到-integer