blobbyvolley2 icon indicating copy to clipboard operation
blobbyvolley2 copied to clipboard

Get rid of boost dependency for blobby executable

Open danielknobe opened this issue 3 years ago • 3 comments

We no longer have many boost dependencies. If we can get this dependency removed at least for the blobby application (not for server or test) it will simplify the compilation for various systems.

danielknobe avatar Sep 25 '22 07:09 danielknobe

In principle, all of our boost dependencies should be easy to handle, since they only depend on the boost headers. So we could just include or git submodule boost, or even use CMake's FetchContent to get the headers.

At the moment, we are using:

  • BOOST_THROW_EXCEPTION (probably not really needed)
  • shared_array etc. Mostly superceded by std facilities, but note that std::shared_ptr<T[]> is a C++17 addition.
  • crc
  • string algorithms

ngc92 avatar Sep 25 '22 09:09 ngc92

It should be a rule for now to use header only boost components. This makes the whole multiplatform build easier.

danielknobe avatar Mar 10 '23 16:03 danielknobe

This suggestion, to me, makes much more sense than to avoid boost in its entirety. IMO it's just too useful for that :)

ngc92 avatar Mar 10 '23 17:03 ngc92