Re: (long) An AES implementation for 32-bit platforms
From: Richard Herring (junk_at_[127.0.0.1)
Date: 06/17/03
- Previous message: Mark Wooding: "Re: Looking for a hash with specific properties"
- In reply to: Mark Wooding: "Re: (long) An AES implementation for 32-bit platforms"
- Next in thread: Mark Wooding: "Re: (long) An AES implementation for 32-bit platforms"
- Reply: Mark Wooding: "Re: (long) An AES implementation for 32-bit platforms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 17 Jun 2003 11:08:16 +0100
In message <slrnbesirs.18j.mdw@tux.nsict.org>, Mark Wooding
<mdw@nsict.org> writes
>
>One of the main deficiencies in C++ is that you must explicitly cast
>`void *' pointers to other kinds of things. So you can't just say
>
> foo *x = malloc(sizeof(*x));
>
>you have to say `(foo *)malloc...'. This is a good way of accidentally
>losing `const' qualifiers.
>
>I find the other differences much less irksome -- this is the biggie.
Why are you writing C in C++ ?
The C++ idiom would be
std::auto_ptr<foo> x(new foo);
-- Richard Herring
- Previous message: Mark Wooding: "Re: Looking for a hash with specific properties"
- In reply to: Mark Wooding: "Re: (long) An AES implementation for 32-bit platforms"
- Next in thread: Mark Wooding: "Re: (long) An AES implementation for 32-bit platforms"
- Reply: Mark Wooding: "Re: (long) An AES implementation for 32-bit platforms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|