Boost logo

Boost :

From: gary (gary_at_[hidden])
Date: 2006-10-27 00:25:58


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(",") );

The boost::is_any_of call triggers the error.

1>w:\boost\boost_1_33_1\boost\range\const_iterator.hpp(36) : error C2039: 'const_iterator' : is not a member of 'ATL::CStringT<BaseType,StringTraits>'
1> with
1> [
1> BaseType=char,
1> StringTraits=StrTraitMFC_DLL<char>
1> ]
1> w:\boost\boost_1_33_1\boost\range\result_iterator.hpp(35) : see reference to class template instantiation 'boost::range_const_iterator<C>' being compiled
1> with
1> [
1> C=CString
1> ]
1> w:\boost\boost_1_33_1\boost\algorithm\string\iter_find.hpp(144) : see reference to class template instantiation 'boost::range_result_iterator<C>' being compiled
1> with
1> [
1> C=CString
1> ]
1> w:\boost\boost_1_33_1\boost\algorithm\string\split.hpp(148) : see reference to function template instantiation 'SequenceSequenceT &boost::algorithm::iter_split<SequenceSequenceT,RangeT,boost::algorithm::detail::token_finderF<PredicateT>>(SequenceSequenceT &,RangeT &,FinderT)' being compiled
1> with
1> [
1> SequenceSequenceT=std::vector<std::string>,
1> RangeT=CString,
1> PredicateT=boost::algorithm::detail::is_any_ofF<char>,
1> FinderT=boost::algorithm::detail::token_finderF<boost::algorithm::detail::is_any_ofF<char>>
1> ]
1> c:\codejock apps\qp charts\charts\exportlisttoasciidlg.cpp(98) : see reference to function template instantiation 'SequenceSequenceT &boost::algorithm::split<std::vector<_Ty>,CString,boost::algorithm::detail::is_any_ofF<CharT>>(SequenceSequenceT &,RangeT &,PredicateT,boost::algorithm::token_compress_mode_type)' being compiled
1> with
1> [
1> SequenceSequenceT=std::vector<std::string>,
1> _Ty=std::string,
1> CharT=char,
1> RangeT=CString,
1> PredicateT=boost::algorithm::detail::is_any_ofF<char>
1> ]

Any help is certainly appreciated.

Best regards,

Gary Lyben


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