Re: Two C++ questions
From: tom_usenet (tom_usenet_at_hotmail.com)
Date: 04/28/04
- Next message: tom_usenet: "Re: Two C++ questions"
- Previous message: Claudio Puviani: "Re: Why won't the compiler tell??"
- In reply to: Julie: "Re: Two C++ questions"
- Next in thread: Julie: "Re: Two C++ questions"
- Reply: Julie: "Re: Two C++ questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 28 Apr 2004 09:55:57 +0100
On Tue, 27 Apr 2004 11:04:11 -0700, Julie <julie@nospam.com> wrote:
>Claudio Puviani wrote:
>> > If you are going to use the std functions, allocate the memory w/ new.
>>
>> The two concepts are COMPLETELY unrelated. There is nothing practical or
>> theoretical that correlates how and where memory is allocated with the way it
>> should be manipulated.
>
>You don't allocate memory w/ new, you allocate space for instances of objects,
>be they classes or POD types.
void* mem = ::operator new(42);
>malloc is the only way to allocate 'memory'.
Really!?
Tom
-- C++ FAQ: http://www.parashift.com/c++-faq-lite/ C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
- Next message: tom_usenet: "Re: Two C++ questions"
- Previous message: Claudio Puviani: "Re: Why won't the compiler tell??"
- In reply to: Julie: "Re: Two C++ questions"
- Next in thread: Julie: "Re: Two C++ questions"
- Reply: Julie: "Re: Two C++ questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|