Pointers are only necessary if you're going to move around data a lot, for example assigning a set to another.
However, as the rule goes, start without pointers first, and if you application is...
Type: Posts; User: Elysia
Pointers are only necessary if you're going to move around data a lot, for example assigning a set to another.
However, as the rule goes, start without pointers first, and if you application is...
operator < should accept two const references for efficiency's sake.
And lawrenced: avoid pointers in the first place. Just create your Reservations and put them into the set. No new. No delete.