I am writing a DLL library in C ++. It has some function. It takes type & as input, where type is some type (class) defined in the library and not specified for export. If I in a project using this library define this class identically and call a function from dll with an argument — an instance of a class defined in the project, will it work adequately?
Perhaps there are options for how to do it differently?
Or can I make a .hpp file with this class and include it in the project and in the library?