Applying mpl::transform to an mpl::string

Hi,
I'm trying to apply a transformation to an mpl::string, but can't get it to
compile. I'm using MS VC++2010 and Boost 1.43.0. The code:
#include
::type result_numbers;
// this doesn't (error C2039: 'value' : is not a member of
'boost::mpl::has_push_back_arg')
typedef mpl::string<'abcd', 'efgh'> chars;
typedef mpl::transform
::type result_chars;
} I've posted the full error message at http://paste.ubuntu.com/447759/. Am I doing something wrong? Thanks, Pedro d'Aquino

Hi Pedro, On 6/10/2010 1:02 PM, Pedro d'Aquino wrote:
Hi,
I'm trying to apply a transformation to an mpl::string, but can't get it to compile. I'm using MS VC++2010 and Boost 1.43.0. The code:
#include
#include #include #include #include using namespace boost;
int main() {
// this compiles OK typedef mpl::vector_c
numbers; typedef mpl::transform > >::type result_numbers; // this doesn't (error C2039: 'value' : is not a member of 'boost::mpl::has_push_back_arg') typedef mpl::string<'abcd', 'efgh'> chars; typedef mpl::transform
> >::type result_chars; }
I've posted the full error message at http://paste.ubuntu.com/447759/.
Am I doing something wrong?
Thanks for the report. This is fixed now on trunk. It should make it into the next release. -- Eric Niebler BoostPro Computing http://www.boostpro.com
participants (2)
-
Eric Niebler
-
Pedro d'Aquino