Traits of overloaded functions

前端 未结 0 1743
不思量自难忘°
不思量自难忘° 2021-02-03 11:52

I am trying to get the return type of a function with const/non const overloads.

struct TestClass {
    const int* getPtr() const { return ptr; }
    int* getPtr(         


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