|
Boost-Build : |
From: David Abrahams (gclbb-jamboost_at_[hidden])
Date: 2003-10-02 12:50:15
"Sergey Ermolenko" <gclbb-jamboost_at_[hidden]> writes:
> I have built STLPort 4.5.3 with VS 2003 and trying to build boost-1.30.2.
> However, I've a problem with regex:
>
> c_regex_traits.cpp
> C:\Documents and Settings\All
> Users\Documents\misc\STLport-4.5.3\stlport\stl\_string.h(376) : error C2664:
> 'void
> _STL::_Nondebug_string<_CharT,_Traits,_Alloc>::_M_range_initialize<_InputIte
> r>(_InputIter,_InputIter,const _STL::input_iterator_tag &)' : cannot convert
> parameter 3 from 'std::random_access_iterator_tag' to 'const
> _STL::input_iterator_tag &'
> with
> [
> _CharT=wchar_t,
> _Traits=std::char_traits<wchar_t>,
> _Alloc=_STL::allocator<wchar_t>,
>
> _InputIter=std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocato
> r<wchar_t>>::const_iterator
> ]
> Reason: cannot convert from 'std::random_access_iterator_tag' to
> 'const _STL::input_iterator_tag'
> No constructor could take the source type, or constructor overload
> resolution was ambiguous
>
> Is there any workaround?
Yes. Use STLPort's compiled library with its iostreams. The other
configuration is convenient, but it's a hack, which results in
precisely this sort of problem.
HTH,
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk