Quote:Original post by jykQuote:Original post by M2tM
Not everyone wants to include boost just to cast from an int to a string.
Keep in mind that you don't really have to 'include Boost' to use lexical_cast; it's header only, so all you really have to do is include a single header file (if that's what you meant by 'include Boost', then never mind, although it does seem somewhat limiting to deprive oneself of such a simple and useful tool due to not wanting to include a few headers).
Right.
So essentially M2tM, you're spending time to write a (poor) copy of the wheel so you than can then include that header everywhere, instead of downloading a single well vetted file and include that everywhere.
It doesn't even really matter if your code is perfect, it's always a worse choice.