Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bbn!rochester!PT.CS.CMU.EDU!F.GP.CS.CMU.EDU!dld From: dld@F.GP.CS.CMU.EDU (David Detlefs) Newsgroups: comp.lang.c++ Subject: Operator new question. Message-ID: <472@PT.CS.CMU.EDU> Date: Tue, 8-Dec-87 12:25:40 EST Article-I.D.: PT.472 Posted: Tue Dec 8 12:25:40 1987 Date-Received: Sun, 13-Dec-87 11:48:36 EST Sender: netnews@PT.CS.CMU.EDU Organization: Carnegie-Mellon University, CS/RI Lines: 20 I have a problem: I have a base class that I would like to have use a specialized storage allocator. I would also like, if possible, all classes derived from this class to use this storage allocator. I have two questions: 1) Is there some easy way to do this that I'm missing? I realize that I can do it by writing the appropriate assignments to this in the constructors of the derived classes, but I'd really like it to happen automatically as a result of something I specify in the base class. 2) Assuming that no one has a whizzy answer to the first question, will the overloadability of operator new in the next version of C++ solve my problem? Will I be able to do something like make operator new a public (or protected?) member of the base class, and have the derived classes automatically use it? Thanks. Dave