Wide and narrow streams library configuration
-----BEGIN PGP SIGNED MESSAGE-----
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,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----