A small template to simplify COM-interface implementation

eao197 eao197 at intervale.ru
Fri Mar 21 00:07:22 PDT 2008


On Fri, 21 Mar 2008 08:33:26 +0300, Anders Bergh <anders1 at gmail.com> wrote:

> 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

Yes it is a type, thank you.

-- 
Regards,
Yauheni Akhotnikau


More information about the Digitalmars-d-announce mailing list