Can Boost be used as a complete replacement for the C ++ Standard library?

Let's say I have minimal headers such as <new>, <initializer_list>and maybe some other things, is it possible to use Boost to work as a C ++ std library, or is there a lot of missing code?

I assume that the standard C library, which may have juicy versions of things like printf(think Windows), will Boost provide better implementations in <boost/cstddef>(or something)?

+5
source share
3 answers

No. Boost is not intended to replace the standard C ++ library; It is intended to complement and expand the C ++ standard library. In addition, Boost is heavily dependent on the C ++ standard library.

+6
source

Well no. For example, Boost does not define a standard encapsulating stream. Of course, you can use it STDOUTyourself with some lower-level functions, but by this logic you can do almost everything without using the standard library at all.

+4
source

Boost , . / ..

For everything else, I will stick to the standard libraries - they are well-documented, they are often optimized for the OS and, with the exception of a few ifdefs, which you may have to endure here and there, they will compile and work on most platforms.

0
source

All Articles