
Sohail Somani wrote:
Eric Niebler wrote:
David Abrahams wrote:
on Mon Apr 27 2009, Sohail Somani <sohail-AT-taggedtype.net> wrote:
There is an implementation of a mpl::string by Eric Neibler somewhere. well, that's an interesting point. The string itself wouldn't even appear in the data segment. Cool. Below is the definition of a std_str() function that takes an mpl::string and turns it into a std::string. (boost/mpl/string.hpp is available on trunk, but hasn't been released yet.) It's not *very* obfuscated, but should be enough to fool a naive string-dump.
I just realized that mpl::string has a c_str member. That means the OP has to use mpl::vector_c right?
It doesn't anymore. See the latest mpl/string.hpp on trunk. -- Eric Niebler BoostPro Computing http://www.boostpro.com