Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost::Tokenizer / "string iterators incompatible" error on Visual C++ 2010 Express - runs ok on gcc4.6.0
From: asif saeed (asif.lse2_at_[hidden])
Date: 2011-08-02 02:31:29


I still don't understand why it works on GCC 4.6.0 if storing string is
necessary. Sincerely, Asif

On Tue, Aug 2, 2011 at 9:24 AM, asif saeed <asif.lse2_at_[hidden]> wrote:

> Hi Nathan,
>
>
> On Mon, Aug 1, 2011 at 11:26 PM, Nathan Crookston <
> nathan.crookston_at_[hidden]> wrote:
>
>> On Mon, Aug 1, 2011 at 10:45 AM, asif saeed <asif.lse2_at_[hidden]> wrote:
>> > Base(std::string s) : sep_(";"),
>> > tok_(s,sep_),
>> > i_(tok_.begin())
>> > {
>> > }
>>
>> These lines are your problem -- the tokenizer stores the iterators
>>
>
> It causes problem on Visual C++ 2010 Express at run-time. However, it runs
> fine on GCC 4.6.0 / Fedora-15-64-bit.
>



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