Boost logo

Boost :

Subject: Re: [boost] [outcome] some problems compiling
From: Peter Dimov (lists_at_[hidden])
Date: 2017-05-24 13:22:39


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/3568e093bb42da2dcf050c659bb5cbb86acdfbd3

You could also look at winapi for inspiration, for example here

https://github.com/boostorg/winapi/blob/develop/include/boost/detail/winapi/dbghelp.hpp

I _think_ that winapi works on clang.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk