Boost

How to convert string to int (or int to string)

Submitted by slavikt on Tue, 07/10/2007 - 16:08.

Have I already told that Boost is incredibly useful thing? For example, to easily convert number into the string, you can use lexical_cast like:  read more »

|

How to create a closed time period with boost::posix_time

Submitted by slavikt on Tue, 11/28/2006 - 18:40.

Boost date_time library provides very good interface to work with a temporal data. But because of the requirements for iterators compability, the periods are represented as a half-opened values. When passing the begin and end to the constructor, the second parameter will not belong to the created interval.  read more »

|