Boost logo

Boost :

Subject: Re: [boost] Is Boost interested in the Boost-based Base64 library
From: Denis Shevchenko (for.dshevchenko_at_[hidden])
Date: 2011-06-10 02:20:38


2011/6/10 Robert Ramey <ramey_at_[hidden]>

> I think you'd find it interesting to see how the serialization library
does
> it.

> ../boost/archive/iterators/base64_from_binary
> ../boost/archive/iterators/binary_from_base64

Yes, Robert. :-)

I took theese iterators (and 'transform_width') and wrap them in one simple
and ready-to-use solution. Simple and ready-to-use even for novices.

I need a such solution, for this common task. And I definetly know many
developers looking for such solution. Solution they can use immediately,
without long studying the documentation. Just few lines of code:

int main() {
    std::string text = "TEXT";
    std::string encoded = boost::base64().encode( text );
    std::string text_again = boost::base64().decode< std::string >( encoded
);
}

You think such (or similar) solution is not needed for Boost? Well, probably
it is not needed, but I think it's useful. If not - I apologize for
troubling.

- Denis


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk