Is this valid C++ code (reinterpret_cast between vectors of different struct types)?

前端 未结 0 690
慢半拍i
慢半拍i 2021-01-02 02:36

The point of the following code is that foo should print 1 instead 0, without changing any of the following:

  1. main
  2. foo
相关标签:
回答
  • 消灭零回复
提交回复
热议问题