CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: hoodmane

Search: Search took 0.02 seconds.

  1. Replies
    21
    Views
    13,666

    Re: Resource management--circular linked list

    Yeah I see that it would be easy to get bogged down in the Boost docs. It's interesting looking at the way the interfaces for the different algorithms are set up after writing some of my own...
  2. Replies
    21
    Views
    13,666

    Re: Resource management--circular linked list

    So the approach you are advocating is to use two STL lists and to write an adapter iterator that gives the lists any added structure that I need? And that would save me from needing to deal with any...
  3. Replies
    21
    Views
    13,666

    Re: Resource management--circular linked list

    @monarch_dodra
    Never mind I think I figured it out.


    @SuperBonozo
    So you make a third container class that has functions that return iterators and when that is destroyed, it is responsible for...
  4. Replies
    21
    Views
    13,666

    Re: Resource management--circular linked list

    @Monarch_Dodra
    That makes sense to me. Writing code that makes some operations look really simple at the expense of giving others unexpected side effects is probably not a good trade-off. When...
  5. Replies
    21
    Views
    13,666

    Re: Resource management--circular linked list

    @Alex F
    Yeah, CLPtr is an iterator for the list. It has a pointer to a node and a dereference operator that returns the datum contained in the node. I believe you are saying that even though the a...
  6. Replies
    21
    Views
    13,666

    Re: Resource management--circular linked list

    The source of the error is definitely not apparent from the code that I posted. The problem that I'm having is that the source it isn't apparent at all. It's not even consistent---sometimes it...
  7. Replies
    21
    Views
    13,666

    Resource management--circular linked list

    I am working on code to create a type of circular linked list. I have a class CLNode for the actual nodes of the list and a second class CLPtr for pointers to the nodes. The node class is entirely...
Results 1 to 7 of 7





Click Here to Expand Forum to Full Width

Featured