Just for simplification...
Using _declspec(dllexport) in the above way provides a convenient way to export all the functions in a class without needing to export them all individually but IIUC it exports everything - even some_var
Is there some convenient way to export a class's functions but to exclude its member variables?
Code:
class _declspec(dllexport) Whatever
{
public:
int some_func1 ();
int some_func2 ();
int some_func3 ();
[...]
int some_func20 ();
private:
int some_var;
};
Is there some convenient way to export a class's functions but to exclude its member variables?