gpt4 book ai didi

c++ - 为什么 operator () [] -> = 必须是非静态成员?

转载 作者:行者123 更新时间:2023-11-28 01:09:07 24 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Why are some operators in C++ only allowed to be overloaded as member functions?

为什么 operator () [] -> = 必须是非静态成员?为什么不能成为 friend ?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com