郁闷的一个指针误用

typedef _StructTest{

    ....

}StructTest, *PStructTest;

PStructTest pStruct = new StructTest

reinterpret_cast<const char*>(&pStruct)    // ---   额额额额额

已经是一级指针了, 被本挫人引用成二级指针然后再转成一级指针来用, 结果很悲剧, 查了大半天............

wwwwwwwwwwwwwwwwwwwww

原文地址:https://www.cnblogs.com/jianc/p/2882526.html