Debian Developers - Wide and narrow streams library configuration

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > February 2006 > Wide and narrow streams library configuration





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Wide and narrow streams library configuration
Andreas Fester

2006-02-22, 6:06 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

I am currently working on the next version of the log4cxx logging
library, and came across an interesting question:

Wide and narrow streams (e.g. std::wcerr and std::cerr) can not be used
mixed within the same application. So, if a library uses one
of those streams, any application linked against this library
can never use the other stream type.

One solution which comes to my mind is to provide a
runtime configuration switch which allows the application
to choose the stream type, the other solution is to provide
two versions of the library, one compiled for wide streams,
the other for narrow streams.

Any other suggestions? Anyone knows other libraries which have
the same issue and solved it in some cool way?

Thanks & Best Regards,

Andreas

- --
Andreas Fester
mailto:andreas@littletux.net
WWW: http://www.littletux.net
ICQ: 326674288
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD/OiCZ3bQVzeW+rsRAoDNAJ426i+Grx/L6pawv18t9o6Rm5q7MgCgkFLM
ISjXzlJfrOiS2JxjPqE6csQ=
=k9Ud
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com