Question

I want to provide a library which will do some regex things, and since either gcc nor clang (correct me if I'm wrong) implements it now, I will use boost for this. But boost breaks its ABI from time to time so my question is:

Is it safe to compile my library with the static compiled version of boost, so that no ABI break will occur in future versions of boost?

Was it helpful?

Solution

If you compile statically with boost you won't have any ABI problems with future versions, since nothing is called "externally", you also won't be using anything from future versions without recompilation obviously.

I've statically linked with boost for years, mainly for easier deployment, without any problems.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top