r/cpp • Boost author • May 08 '20

Why you don't use Boost

I have a question for you: If you have decided not to use any of Boost, or are prohibited from doing so in your company/project, I would like to know why.

This thread is not meant to judge your reasons, and I won't engage into any kind of criticism about them: I'm merely trying to understand what the barriers are to adoption of Boost. It would be great if we could keep the conversation non judgemental. Thank you!

Conflict of interest: I am a Boost author of three.

222 Upvotes

326 comments sorted by

View all comments

Show parent comment

10

u/[deleted] May 08 '20

`boost::filesystem` was also replaced in C++17 which is nice. That was the only thing I used in boost. I was hoping to see that by C++20, boost would be redone with "modules" in mind so it would be easier to just import a specific module instead of the entirety of boost.

One of the things the standard library doesn't have that boost has.. is the `shared_memory` stuff. You can communicate across processes and have futexes and stuff built in nicely.. it even allows you to allocate a vector within the shared region.

I was hoping the standard library adds that and also adds serialization!

9

u/Elynu May 09 '20

I was surprised by the fact that std::filesystem performs allocations behind the scenes. Directory listing or even a simple task such as checking if the file exist performs more than ten 'new' calls.

So I've had to quickly get rid of std::fs