
7 Apr
2009
7 Apr
'09
10:46 a.m.
Eric Niebler wrote:
Andy Stevenson wrote:
I recall some discussion of there being an mpl::string template..... Can't see it in the mpl library. Is it elsewhere?
It has been added to trunk as of revision 52208:
https://svn.boost.org/trac/boost/changeset/52208
No doubt the regression tests will reveal portability problems. Once they have been worked out, we can move this to release.
Why is this better than a metafunction c_str< Sequence >? typedef mpl::vector_c<char, 'h', 'e', 'l', 'l', 'o'> str; template < char const* sz > struct x {}; x< c_str<str>::value > test; Is there some reason that's not possible or is prone to problems avoided by mpl::string?