Function/Method Overloading C++: Data type confusion?

前端 未结 7 2530
清酒与你
清酒与你 2021-02-14 18:11

I\'m having some trouble overloading methods in C++. As an example of the problem, I have a class with a number of methods being overloaded, and each method having one parameter

7条回答
  •  [愿得一人]
    2021-02-14 19:05

    Apart from the string issue, there's another one. int64_t and int8_t are (usually) typedefs. Since typedefs are just aliases, they may refer to the same type in which case overloading won't work. But this is rather unlikely in your case. Just wanted to mention it.

提交回复
热议问题