Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Boost be used as a full replacement of the C++ Standard library? [closed]

Say I have minimal headers like <new>, <initializer_list>, and maybe some other stuff, is it possible to use Boost to function as a std C++ library, or is there a lot of code missing?

I'm assuming a C standard library, which might have sucky versions of things like printf (think Windows), will Boost provide better implementations in <boost/cstddef> (or something)?

like image 792
rubenvb Avatar asked Feb 05 '13 15:02

rubenvb


2 Answers

No. Boost is not designed to replace the C++ standard library; it is designed to complement and extend the C++ standard library. Also, Boost depends heavily on the C++ standard library.

like image 187
Johan Råde Avatar answered Oct 25 '22 02:10

Johan Råde


Well, no. For example, Boost doesn't define a stream encapsulating standard out. Sure, you can use STDOUT itself with some lower-level functions, but by that logic you can do pretty much everything without using the standard library at all.

like image 20
Lightness Races in Orbit Avatar answered Oct 25 '22 02:10

Lightness Races in Orbit