
You can ignore 4275 for pure header template classes. The only risk is if you have different definitions for the template or any of its parameters (which is bad for other reasons, which are likely to trip you up before 4275 manifests).
You could try this -
In the header:
template struct __declspec(dllexport) boost::error_info
I am not much of a Windows programmer, so I have a basic question. I want to make a library that (among other stuff) defines an exception like this:
#include
namespace speedo {
typedef boost::error_info
error_info; class __declspec(dllexport) exception : public boost::exception { };
}
When I try to compile this, I get the following warning:
c:\cygwin\home\andrej\speedo\trunk\util\exception.h(14) : warning C4275: non dll-interface class 'boost::exception' used as base for dll-interface class 'speedo::exception'