Boost logo

Boost :

From: gary (gary_at_[hidden])
Date: 2006-10-27 07:06:31


Hello

Thank you for taking a look at this. The problem was indeed that csText was
a CString. Once I converted it to a std::string, the compile was clean.

I've been using mfc forever, but am pretty new to boost and std, so I have
to get used to the error messages.

Best regards,

Gary Lyben

----- Original Message -----
From: "Martin Bonner" <martin.bonner_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, October 27, 2006 5:03 AM
Subject: Re: [boost] [range] bug visual studio 8

> ----Original Message----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of gary Sent: 27
> October 2006 05:26 To: boost_at_[hidden]
> Subject: [boost] bug visual studio 8
>
>> Hi
>>
>>
>> I'm getting a compile error in Visual Studio 8 with boost 1.33.1
>>
>> It looks like the boost namespace is not being honored, as
>> ATL::CString has no business here.
>>
>> I don't know how to get around it, other than rewriting this function:
>> boost::split( splitVec, csText, boost::is_any_of(",") );
>
> What is the type of splitVec and csText?
>
> ATL:CString has business everywhere because the ATL headers have a
> "using namespace ATL;" in them.
>
> Is the problem something to do with the fact that "," is getting
> implicitly converted to CString?
>
>> see reference to class template instantiation
>> 'boost::range_const_iterator<C>' being compiled
>> 1> with
>> 1> [
>> 1> C=CString
>> 1> ]
>> 1>
>
> Maybe you need to specialize boost::range_const_iterator<CString>
>
> With luck, somebody who knows something about boost::range will be along
> shortly to explain why all of the above is rubbish. I have added a
> [range] token to the title to encourage that to happen.
>
>
> --
> Martin Bonner
> Martin.Bonner_at_[hidden]
> Pi Technology, Milton Hall, Ely Road, Milton, Cambridge, CB24 6WZ,
> ENGLAND Tel: +44 (0)1223 203894
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk