Boost logo

Boost Users :

Subject: Re: [Boost-users] scatter error
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-16 11:00:44


AMDG

alev mutlu wrote:
> for(int i = 0; i < arraySize; i++){
> c.field_name = "field_name=" + i;
> c.field_type = "field_type=" + i;
> c.field_ref = "field_ref=" + i;
> c.field_colType = "field_colType=" + i;
> C.push_back(c);
> }
>

This does pointer arithmetic, not string concatenation.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net