Slimelite BBS

templates in header e

Back to EMULATE

From David Harmon · 1996-04-10 14:52 · #73692 in EMULATE

Ed Beroset wrote in a message to Mike Bilow, (03 Apr 96  17:52:03)
 MB> In principle, a stack container should contain objects, not 
 MB> pointers to objects.  

 EB> Well, that's one way to do it, certainly.  You haven't really given
 EB> much justification or explanation for why they "should." 

It lets you say what you mean and get what you ask for.  If you want a
container of objects, that's what you get.  If you want a container of
pointers, declare the pointer type as the container template parameter.
Otherwise there is no straightforward way to get both kinds.


--- Blue Wave/Max v2.12 [NR]
 * Origin: Long_Island RB 310-370-4113 VAX EC (V34/VFC/V32T/V32B) (1:102/138.0)