Re: converting 1944 to '1','9','4','4'
From: Leor Zolman (leor_at_bdsoft.com)
Date: 04/14/04
- Next message: Jeff Flinn: "Re: why it seems that std::list::erase() doesnt free objects in a list, if the latter holds pointers to them?"
- Previous message: jimjim: "WAS: why it seems that std::list::erase() doesnt free objects in a list, if the latter holds pointers to them?"
- In reply to: Leor Zolman: "Re: converting 1944 to '1','9','4','4'"
- Next in thread: Mike Wahler: "Re: converting 1944 to '1','9','4','4'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 14 Apr 2004 14:31:15 GMT
On Wed, 14 Apr 2004 14:17:32 GMT, Leor Zolman <leor@bdsoft.com> wrote:
>
>//
>// tostrtest.cpp: Test tostring.h library
>//
>
>#include "tostring.h"
>
>int main()
Sorry, forgot to put
#include <iostream>
up there. It was compiling for /me/ due to the headers included by
tostring.h in the platform I happen to be using (Comeau), but was rather
(un-)lucky.
Also, as mentioned by others in the thread by now, boost's lexical_cast
facility exists for this type of thing. I just like to practice my template
writing ;-)
-leor
-- Leor Zolman --- BD Software --- www.bdsoft.com On-Site Training in C/C++, Java, Perl and Unix C++ users: download BD Software's free STL Error Message Decryptor at: www.bdsoft.com/tools/stlfilt.html
- Next message: Jeff Flinn: "Re: why it seems that std::list::erase() doesnt free objects in a list, if the latter holds pointers to them?"
- Previous message: jimjim: "WAS: why it seems that std::list::erase() doesnt free objects in a list, if the latter holds pointers to them?"
- In reply to: Leor Zolman: "Re: converting 1944 to '1','9','4','4'"
- Next in thread: Mike Wahler: "Re: converting 1944 to '1','9','4','4'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|