Skip to content

C++ Gurus

The forum for all discussions in C++ land.
1.3k Topics 8.4k Posts
  • [ANSWERED] Operator Overloading with Pointers

    9
    0 Votes
    9 Posts
    10k Views
    P

    Sorry, if I wasn't clear. I made two suggestions to solve your problem and the longer i think about the first one the less I like my own solution. Because it would work in another way than the standard library and thus may confuse readers of your code.

    I as an user of your binary heap would expect that the implementations calls operator<(T, T) for all possible T in the same way.

  • 0 Votes
    20 Posts
    16k Views
    G

    Peppe, your right. I mixed up things from what I looked up in the sources some times ago. The layout only keeps book of the widgets it manages, but does not take ownership.

    But what's really important for the users: After the UI is set up, all parent-child relationships are correct. I really do like Qt :-)

  • 0 Votes
    6 Posts
    15k Views
    F

    Wooh!
    Kind of Holiday/Vacation presents all these posts, now that I came from vacation. Thank you all for the support