Could you show us some code? What do you mean by "not initialized"?
Markus
-----Ursprüngliche Nachricht-----
Von: Martin Owens [mailto:doctormo@...400...]
Gesendet: Dienstag, 21. Januar 2014 22:37
An: Johan Engelen
Cc: inkscape-devel(a)lists.sourceforge.net
Betreff: Re: [Inkscape-devel] Href sub-document model
On Tue, 2014-01-21 at 19:04 +0100, Johan Engelen wrote:
How large do we expect this list to be?
I advise list<T> for now (moving onto unique_ptr when we make the
switch to C++11), just for the sake of simplicity and not
unnecessarily relying on external deps. I think there is a much higher
chance of a dev knowing the semantics of list<unique_ptr<T>> than
boost::ptr_list<T>.
I'm very close to reverting my code back to GSList, that just worked first
time and now that I've turned it into a std::list<SPDocument *> it's a pile
of poo. Just segfaulting because it's not initialized. But of course no
examples in the code base exist of initializing std::list types. It's like
every example code works on magic but my code hate me.
I'm at a loss for how this is supposed to work.
Any help?
Martin,
----------------------------------------------------------------------------
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical
Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg...
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel(a)lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel