cppalliance / mrdocs

MrDocs: A Clang/LLVM tool for building reference documentation from C++ code and javadoc comments.
https://mrdocs.com
Other
77 stars 17 forks source link

Review LazyObjectImpl::obj() #696

Open alandefreitas opened 1 week ago

alandefreitas commented 1 week ago

Most compilers don't implement __cpp_lib_atomic_shared_ptr, on which LazyObjectImpl depends:

https://github.com/cppalliance/mrdocs/blob/a962db0fc4a309afa11e956fbe9b9880e39c92f0/src/lib/Dom/Object.cpp#L216-L232

For this reason, the function above contains two implementations, depending on whether __cpp_lib_atomic_shared_ptr is supported.

Both implementations are problematic:

vinniefalco commented 1 week ago

sad