how to work-around this "deprecation" error (return address of field of struct?)

mw mingwu at gmail.com
Mon Aug 24 23:39:09 UTC 2020


https://github.com/etcimon/windows-headers/issues/9

I got this error, when build with 
VisualD-v1.0.1-dmd-2.093.1-ldc2-1.23.0.exe

dmd:

Severity Code Description Project File Line Suppression State
Error Deprecati 
C:\Users...\AppData\Local\dub\packages\windows-headers-1.0.4\windows-headers\source\windows\winnt.d 2759

https://github.com/etcimon/windows-headers/blob/master/source/windows/winnt.d#L2759

```
struct MESSAGE_RESOURCE_DATA {
         DWORD NumberOfBlocks;
         MESSAGE_RESOURCE_BLOCK _Blocks;

         MESSAGE_RESOURCE_BLOCK* Blocks() { return &_Blocks; }  // 
2759
}
```

VisualD only shows "Error Deprecati"

how to work-around this issue?

or which older version of DMD does not have this Deprecati(on)? 
anyone knows?

thanks.



More information about the Digitalmars-d mailing list