Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To which extent is "boost does it" equivalent to "very portable, use it"?

In this answer to a question asking "is doing Z this way portable" the idea is "boost does it this way, it means it is very portable".

Can I just always consult boost sources to find the most portable way of doing something in C++? How can I judge for myself if boost is really such a collection of super-portable code?

like image 262
sharptooth Avatar asked Feb 26 '10 13:02

sharptooth


2 Answers

There are some cases where Boost libraries exist precisely because they wrap very non-portable code. The most obvious examples are the file system and threading stuff.

The telltale sign of this is a large use of Boost.Config macros. Boost code that doesn't depend on Boost.Config (or other non-standard #ifdefs) will be highly portable.

like image 176
MSalters Avatar answered Sep 22 '22 05:09

MSalters


Boost is prety well tested against a variety of operating systems

Check out this page

like image 24
f4. Avatar answered Sep 21 '22 05:09

f4.