On Dec 13, 9:36 am, Chris Forone <4...@gmx.atwrote:
is there a problem with meyers-singleton when defined in
header-file?
example (someheader.h):
class a
{
static a& Instance() {static a instance; return instance;}
}
or can a static member not be implicit inline?
There's no problem as far as the language is concerned, but it's
a good way to make maintenance intolerable and introduce
additional source code coupling.
--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34