C++ same function parameters with different return type

前端 未结 10 1086
猫巷女王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:52

    int a=itoa(retrieveValue(dataString));
    double a=ftoa(retrieveValue(dataString));
    

    both return a string.

提交回复
热议问题