Monthly Archives: October 2011

Value-initialization with Boost

One of the fundamental concepts in STL is RegularType. This is more-less what containers expect of their elements: default construction, destruction, copy-ability (copy constructor and copy assignment), movability (move constructor and move assignment), equality (operator==), ordering (operator<). C++ does a … Continue reading

Posted in programming | Tagged , , | 1 Comment

Parsing floats

I was recently forced to revise the way I parse floating-point numbers from GUI forms. I made two observations on the subject that I would like to share with you. For instance, do you know why the conversion from string … Continue reading

Posted in programming | Tagged , | Leave a comment

Using std::terminate

In this article we are going to see what happens when your program calls std::terminate. If you think it simply terminates the program, you may find it interesting that it is not always so, and the function may be used … Continue reading

Posted in programming | Tagged , , | 7 Comments