|
Boost : |
Subject: Re: [boost] Library for base64
From: DE (satan66613_at_[hidden])
Date: 2010-05-14 14:54:28
on 14.05.2010 at 20:55
deninok wrote :
> Hi all!
> Is there any interest in a library for base64 encoding?
> Something like this:
> int main() {
> base64_encoder encode;
>
> std::string pure = "Hello world!";
> std::string enc;
> encode( pure, enc );
> // In enc: SGVsbG8gd29ybGQh
> ...
> }
> Library uses boost::dynamic_bitset.
actually i'm not interested in such a lib yet
i just have a suggestion: it's better to use
type encode(const type &src);
instead of
void encode(const type &src, type &dest);
such that the use case becomes
std::string enc = encode(pure);
-- Pavel P.S. if you notice a grammar mistake or weird phrasing in my message please point it out
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk