If I create multiple Component classes with private member…
and assign an address to the pointer in each Component’s constructor…
sharedResource = new SharedResourcePointer<SharedObjectType>;
…will I actually be creating a single shared resource, or a big mess?
If the answer is “a big mess”, is it possible to create a SharedResourcePointer member in such a way that doesn’t require the SharedObjectType to be #included in the .h file for the SharedResourcePointer’s parent class (i.e. to include the SharedObjectType in the .cpp instead)? If so, how?
I’m (still) trying to figure out a way to resolve this circular dependancy problem in order to continue using the Projucer’s GUI tweaking facilities in conjunction with a global LookAndFeel.
Many thanks in advance!