Why is it impossible to have a reference-to-void?

后端 未结 10 1012
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-23 19:32

Why is it impossible to have a reference to void? The only thing I found in the C++ Standard is this line, at 8.3.2.1

A declarator th

10条回答
  •  北荒
    北荒 (楼主)
    2020-12-23 20:36

    void is something that, by definition, doesn't exist, so it is not logical to have it's adress.

提交回复
热议问题