Boost C++ Libraries

Miscellaneous Forums/General Discussion/Boost C++ Libraries

I hope this is the right forum. I must admit I find it very difficult to find black and white answers to which is general discussion and which is general help.

I was trying to find a nice way to cast between int and string in C++ last night and was pointed to Boost::Lexical_Cast. I then went on to spot Boost::Foreach which looks like a very handy addition, particularly given that I've been programming in BlitzMax so much lately.

I wondered if the C++ programmers amongst us would share a list of whic Boost libs, if any, they use, what they're good for and why.

boost::foreach, does that iterate through lists?

From what I can see, it iterates through null terminated strings ( char and w_char ) and standard c arrays, as well as all the STL containers, so if you mean STL lists then yes, it does.

The date/time stuff is so nice, I made a module with it ;-)

I've been looking at the Graph stuff too recently... but not being an "expert" with C++ makes it a bit difficult to get into. Lots of new concepts to get my little head around.

You're right, it is difficult to get into a lot of it without being an expert C++ programmer, and at least some of the libs are very C++ specific, in that they're solutions to problems only C++ programmers need and only C++ programmers could use.

The date time lib is a good example of something broadly useful in any language though.

I'm interested in the timer lib too. There are so many tiny technical issues surrounding high resolution timers on Windows that a really good tried and tested solution is tempting. Definitely gonna have a read of that one.