Re: mswin

From: Kinkie <gkinkie_at_gmail.com>
Date: Mon, 23 Jan 2012 19:45:14 +0100

> Whether it is better to continue to use inheritance or switch to a data
> member depends on the msghdr/etc API for a given platform. For a dummy
> squid-specific struct representing msghdr to make TypedMsgHdr and
> friends compile on Windows, it would probably be easier to keep the
> inheritance model. We can always switch to a data member later, after
> evaluating the needs of non-dummy platform-specific APIs.
>
> Overall, the result will look like this:
>
>    #if using windows
>        struct msghdr { ... };
>        ...
>    #endif
>
>    class TypedMsgHdr: public msghdr { ... };

yes, this is what I'm currently attempting.

Thanks for your input!

-- 
    /kinkie
Received on Mon Jan 23 2012 - 18:45:21 MST

This archive was generated by hypermail 2.2.0 : Tue Jan 24 2012 - 12:00:08 MST