24 May
2017
24 May
'17
1:22 p.m.
Niall Douglas wrote:
It's a trick to include windows without including windows which only works on MSVC by taking advantage of its lax parser. That's why on clang we just go ahead and include windows.
I remember recently having to fix similar code in smart_ptr for clang: https://github.com/boostorg/smart_ptr/commit/3568e093bb42da2dcf050c659bb5cbb... You could also look at winapi for inspiration, for example here https://github.com/boostorg/winapi/blob/develop/include/boost/detail/winapi/... I _think_ that winapi works on clang.