Hi all,
I need to change the output format of certain (built-in) types - e.g., doubles - into a custom format (say a base64 encoded version respecting byte ordering on the network and other stuff like that). Any ideas on how to do that without having to resort to methods like replacing every inserted double into something like "hton_custom(0.1)"?
Thanks for the super-fast reply! I went with the num_put facet and a global locale change, as I have quite some stringstreams which I don't have to touch this way. You really saved me a lot of trouble, thanks.