Boost logo

Boost Users :

Subject: [Boost-users] std::wstring issue with Boost::FileSystem
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2009-02-02 05:18:18


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.



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