13 Jan
2014
13 Jan
'14
4:42 p.m.
On 1/13/14 11:22 AM, Sean Farrow wrote:
Hi All,
I’m sorry if this has already been covered.
I’m trying to use iterator_range with a wchar_t.
My code is as follows:
std::wstringbuttonName =L"jar:file:/C:/Program%20Files/diseMP/4.5.6/O2-LIVE/lib/client/ClientResources.jar!/branding/default/buttons/FindButtonActive.png";
boolisGraphical =false;
isGraphical =boost::algorithm::starts_with(buttonName, L"jar:file:/") && boost::algorithm::ends_with(buttonName, L".png");
boost::iterator_range<wchar_t> range =boost::algorithm::find_last(buttonName, L"/");
try declaring the range type as: boost::iterator_range<std::wstring::iterator> or boost::iterator_range<wchar_t*> or auto HTH, Jeff