www.digitalmars.com         C & C++   DMDScript  

c++ - dllimport and inlining functions

It seems that DMC never tries to inline functions if the class was declared
with __declspec(dllimport):

struct __declspec(dllimport) A
  void f()
  { }

int main()
  A a;


Is there a way to allow the compiler to inline these functions? AFAIK, other
compilers do inline these functions.

bye, Christof

http://cmeerw.org                                 JID: cmeerw jabber.at
mailto cmeerw at web.de

...and what have you contributed to the Net?
Jan 04 2003