What's the difference between const member function and const-ref member function

前端 未结 0 833
我寻月下人不归
我寻月下人不归 2020-12-16 07:06

For the following code:

class C
{
public:
    void fun() const {};
    void fun() const & {};
};

I know that this is illegal, since we ca

相关标签:
回答
  • 消灭零回复
提交回复
热议问题