# HG changeset patch # User jld # Date 1254832310 0 # Node ID a3997dc62092386fd73c4cb3e58342cfde2cf3cc # Parent 9ddefe3aa75034c71ae568606e13d249eb9e9c4e * doc/ustl.sgml: Removed cout.flush() from example and from note. Added note about use of compiler flag -Wno-undef. diff --git a/packages/language/cxx/ustl/current/ChangeLog b/packages/language/cxx/ustl/current/ChangeLog --- a/packages/language/cxx/ustl/current/ChangeLog +++ b/packages/language/cxx/ustl/current/ChangeLog @@ -1,3 +1,8 @@ +2009-10-06 Uwe Kindler + + * doc/ustl.sgml: Removed cout.flush() from example and from note. + Added note about use of compiler flag -Wno-undef. + 2009-08-30 John Dallaway * include/*.h: Move all headers to include/ustl/ except ustl.h and diff --git a/packages/language/cxx/ustl/current/doc/ustl.sgml b/packages/language/cxx/ustl/current/doc/ustl.sgml --- a/packages/language/cxx/ustl/current/doc/ustl.sgml +++ b/packages/language/cxx/ustl/current/doc/ustl.sgml @@ -118,7 +118,9 @@ CYGPKG_IO_FILEIO. To use uSTL in your eCos application, simply include the file <ustl.h>. All uSTL classes are in the -ustl namespace. +ustl namespace. To prevent compiler warnings +when compiling your eCos application with uSTL support, you need to +add the compiler flag . @@ -128,7 +130,6 @@ using namespace ustl; int main (int argc, char* argv[]) { cout << "Hello world!\n"; - cout.flush(); return EXIT_SUCCESS; } @@ -136,9 +137,8 @@ int main (int argc, char* argv[]) If you use cout for printing to the console, -then data will be flushed only if you finish the output with -endl or '\n' and then call -cout.flush() as in the example above. +then data will get sent only if you finish the output with +endl or '\n'.