Relative Content

Tag Archive for parameters

Overloading to support multiple related types (especially pointers)

Problem I was just trying to debug a set of file-manipulation routines I wrote for a program I am working on. One of them kept returning an INVALID_HANDLE error. Explanation I figured out what the problem was. It turns out that because I provided several overloads so that I could call the function with either […]

Overloading to support multiple related types (especially pointers)

Problem I was just trying to debug a set of file-manipulation routines I wrote for a program I am working on. One of them kept returning an INVALID_HANDLE error. Explanation I figured out what the problem was. It turns out that because I provided several overloads so that I could call the function with either […]