C++ same function parameters with different return type

前端 未结 10 1052
猫巷女王i
猫巷女王i 2020-12-16 18:25

I need to find some way to mock an overload of a function return type in C++.

I know that there isn\'t a way to do that directly, but I\'m hoping there\'s some out-o

10条回答
  •  轮回少年
    2020-12-16 18:49

    Unfortunately there is no way to overload the function return type see this answer Overloading by return type

提交回复
热议问题