--- In [email protected], "Brett McCoy" <[EMAIL PROTECTED]> wrote:
>
> A bug was found in some C++ code recently, in my company. This code is
> used on server software for when we have MX lookups for sending mail.
> It was found by a customer (*yikes*) after they had applied a Sun
> recommended patched cluster on their Solaris server:
> 
> if (resState == NULL) {
>     resState = new __res_state; //__res_state is a struct
*snip*

I thought new and structs were not to be used together. I have Googled 
the question and in C# there is a member function called new in a 
struct class but that is not using the keyword "new" and assigning a 
struct. It's also OT here as we are discussing C/C++. Am I wrong about 
new and struct or is that the point of the message?


Reply via email to