Boost logo

Boost Users :

Subject: Re: [Boost-users] std::wstring issue with Boost::FileSystem
From: Graham Bull (kaizak.b_at_[hidden])
Date: 2009-02-02 05:59:55


Try 'compare()' with a lowercase 'c'

2009/2/2 Sean Farrow <sean.farrow_at_[hidden]>

> Hi:
> Whilst using boost::filesystem I'm getting the following issue:
>
> I've defines:
>
> std::wstring Process =ProcessToFind;
>
> //ProcessToFind is an input to the function I'm writing.
>
> std::wstring test =boost::filesystem::wpath(szModName).filename();
>
> //szModName is obtained from a win32 api function.
>
> Process.Compare(test);
>
> //This line gives the following Error:
>
> 1>c:\work\access for everyone\dragonspeak\dragonspeak.cpp(45) : error
> C2039: 'Compare' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
>
> 1> with
>
> 1> [
>
> 1> _Elem=wchar_t,
>
> 1> _Traits=std::char_traits<wchar_t>,
>
> 1> _Ax=std::allocator<wchar_t>
>
> 1> ]
>
>
>
> I'm using the trunk as of yesterday (feb 1) and visual studio 2005.
>
> Anyone any ideas what's going wrong, or what I've forgotten?
>
> Cheers
>
> Sean.
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 3817 (20090202) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
"Facts do not cease to exist because they are ignored"
Aldous Huxley


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