A small template to simplify COM-interface implementation

Anders Bergh anders1 at gmail.com
Thu Mar 20 22:33:26 PDT 2008


On Tue, Mar 18, 2008 at 4:08 PM, eao197 <eao197 at intervale.ru> wrote:
>         Hi!
>
>  The following template is a result of my discussion about D's variadic
>  templates and C++0x variadic templates on a Russian programmer's forum
>  (rsdn.ru). One of my opponents showed an example of Boost.MPL usage in
>  COM-objects implementation. Something like:

Hi,

I spotted a typo in your code:

      return "HRESULT QueryIterface(const(IID)* riid, void ** ppv) {\n"

Probably meant QueryInterface there.

Anders


More information about the Digitalmars-d-announce mailing list