[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Formatted output with std::basic_ostream
From: |
Roger Leigh |
Subject: |
Re: Formatted output with std::basic_ostream |
Date: |
Wed, 21 Dec 2005 18:59:26 +0000 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David W Noon <dwnoon@spamtrap.ntlworld.com> writes:
> On Saturday 17 Dec 2005 18:23 in article
> <873bkrpopc.fsf@hardknott.home.whinlatter.ukfsn.org> of
> comp.os.linux.development.apps, Roger Leigh wrote:
>
>> Are there any GNU extensions that allow this, or could anyone suggest
>> an alternate solution?
>
> The Boost class library supports format objects that can be sent to
> iostream objects. It's poorly documented, but quite simple. There was
> an article in "C/C++ Users' Journal" a couple of months ago that had a
> couple of worked examples.
Thanks for the suggestions.
I've taken a look at Boost.Format, and it looks ideal. It will even
work correctly with gettext/xgettext, which was my main worry. I'll
give this a go soon.
Thanks again,
Roger
- --
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>
iD8DBQFDqaYLVcFcaSW/uEgRAo8CAJ9VnYvVFFSJzQ0dAfanZ/f7MssmlQCgt5TA
1AHd3qVF8V3lfAlEE4SjJ1c=
=Vf2G
-----END PGP SIGNATURE-----