
11 Jul
2008
11 Jul
'08
9:15 p.m.
Steven Watanabe wrote:
AMDG
Edward Diener wrote:
I think it is an error when an end-user uses a Boost library which may need a separate DLL built, never uses a function/class which is implemented in that separate DLL, and yet the Boost header files for that library bring in autolinking. Is this considered an error in the development of a Boost library ?
This can't be made to work perfectly because it will always be based on what is #included rather than what is actually used.
Yes, but if all autolinking functionality was placed in separate header file(s), and the end-user only #includes that header file which contains the functionality he uses, then it does work.