C++ Standard Version Mix-up

Libraries compiled with different C++ standard versions might not be as compatible as wanted.

C++ Standard Version Mix-up

by Christoph Cullmann

From the article:

We work with MSVC 2019 on Windows and all worked fine with LLVM 9.x, but with master, close to all my tests did now segfault in aligned_free.

Some months ago, the implementation of DenseMap got improved to use the allocate_buffer/deallocate_buffer functions to use (if possible) aligned allocation.

Unfortunately, this means, during the compilation of the library, the checks there ensure it doesn’t use these code paths, on the other side, during compilation of our tools, it does, as the allocation functions are fully inline in the header including the feature checks.

Add a Comment

You must sign in or register to add a comment.

Comments (0)

There are currently no comments on this entry.