Hi all,<div><br></div><div>I am enabling libc++ in a library that was depending on boost for things such as mutex, thread, shared_ptr, etc., and I have not yet found a way to detect that we are compiling with the libc++ library unless I first include a header from it. I can do this:</div>
<div><br></div><div>// framework config.h:</div><div><br></div><div>#include <vector></div><div><br></div><div>#if defined( _LIBCPP_VERSION )</div><div> #define USING_LIBCPP</div><div>#endif</div><div><br></div><div>
but now every file that wanted to know if we are using libc++ has vector in it. This include is used to determine which standard library we should use, and many things depend on it. Is there a better solution, other than a -D flag to clang?</div>
<div><br></div><div>Cheers,</div><div>Rich</div>