The bizarre world of typeof()

Kagamin spam at here.lot
Mon Oct 26 06:04:30 PDT 2009


Lars T. Kyllingstad Wrote:

>      // This one fails with the following hilarious message:
>      // Error: static assert  (is(real function() == function)) is false
>      static assert (is (typeof(&Foo.bar) == function));

Failure is valid, compiler just can't show member function types correctly.



More information about the Digitalmars-d mailing list