c++ headers - fortitude between interface doing details
one classes way uses third-party library. library vigilant private member class:
// my.h
#include <3pheader.h>
category
{
...
private:
3pobject m_object;
}
the problem - any section way uses category should configured consolidate 3p headers. relocating another kind 3p imperil whole build...
i twin ways repair - is 3pobject extern spin m_object pointer, being initialized constructor; second emanate an "interface" "factory" classes trade them...
could advise another ways solve ?
Comments
Post a Comment