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

前端 未结 7 2526
清酒与你
清酒与你 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.

    0 讨论(0)
提交回复
热议问题