Important thing for everyone to realize: just like refcounted GObjects and so forth, GC::Anchored objects start with a "refcount" of one. No need to refcount them a second time after you create them. I've made this even more explicit in the CG::Anchored documentation which I would encourage everyone to read...
Thanks for documenting. Please include in your documentation how to handle errors like:
application/editor.cpp: In constructor ‘Inkscape::NSApplication::Editor::Editor(gint, char**, bool)’: ./gc-managed.h:54: error: ‘static void* Inkscape::GC::Managed<default_scan, default_collect>::operator new(size_t, Inkscape::GC::ScanPolicy, Inkscape::GC::CollectionPolicy) [with Inkscape::GC::ScanPolicy default_scan = SCANNED, Inkscape::GC::CollectionPolicy default_collect = AUTO]’ is inaccessible application/editor.cpp:47: error: within this context application/editor.cpp: In destructor ‘virtual Inkscape::NSApplication::Editor::~Editor()’: ./gc-managed.h:67: error: ‘static void Inkscape::GC::Managed<default_scan, default_collect>::operator delete(void*) [with Inkscape::GC::ScanPolicy default_scan = SCANNED, Inkscape::GC::CollectionPolicy default_collect = AUTO]’ is inaccessible application/editor.cpp:78: error: within this context make[2]: *** [application/editor.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
(which is very cryptic)
I have looked in gc-managed.h but didn't find a thing about it.
ralf