strstream would do the trick, but not all compilers support it yet.
Note that strstream is *deprecated* in C++, one should use
stringstreams (sstream) instead. No danger of overflowing any buffers
there. Cf. Josuttis, The C++ Standard Library, Section 13.11.2.
AFAIK, every major platform now
Gerhard Wesp wrote:
strstream would do the trick, but not all compilers support it yet.
Note that strstream is *deprecated* in C++, one should use
stringstreams (sstream) instead. No danger of overflowing any buffers
there. Cf. Josuttis, The C++ Standard Library, Section 13.11.2.
AFAIK, every
On Wed, 02 Apr 2003 10:58:21 +0200
Erik Hofman [EMAIL PROTECTED] wrote:
Gerhard Wesp wrote:
strstream would do the trick, but not all compilers support it yet.
Note that strstream is *deprecated* in C++, one should use
stringstreams (sstream) instead. No danger of overflowing any
Bernie Bright wrote :
STLport has sstream but I doubt if it could be extracted as a stand alone
file. Have you (Erik) tried STLport on your system? If it works then we
probably wouldn't need the simgear compatibility stuff anymore.
Note that MSVC6 does not have sstream while I think VC7
Bernie Bright wrote:
STLport has sstream but I doubt if it could be extracted as a stand alone
file. Have you (Erik) tried STLport on your system? If it works then we
probably wouldn't need the simgear compatibility stuff anymore.
If it did work, I wouldn't have tried generating simething like
Note that MSVC6 does not have sstream while I think VC7 does.
Correct.
I guess MSVC6 is the only platform which doesn't have sstream? Is
there any specific reason why FG has to support a compiler more than 5
years old?
Regards,
-Gerhard
--
| voice: +43 (0)676 6253725 *** web:
I tracked down my crash to controls-bind()
There you will find a plethora of places where the code is sprintf'ing
to a char[32] array, but the contents is often longer than 32 bytes.
Might not have been crashing everyone else (building with -g?) but it
was crashing with -O2. Fixed in cvs ...
Curtis L. Olson wrote:
I tracked down my crash to controls-bind()
There you will find a plethora of places where the code is sprintf'ing
to a char[32] array, but the contents is often longer than 32 bytes.
Might not have been crashing everyone else (building with -g?) but it
was crashing with
Erik Hofman writes:
Is there still no replacement function to do this kind of operation in a
C++ string?
strstream would do the trick, but not all compilers support it yet.
All the best,
David
--
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/