Re: compilation error: no matching function for call to
Re: compilation error: no matching function for call to
- Subject: Re: compilation error: no matching function for call to
- From: Paul Walmsley <email@hidden>
- Date: Tue, 15 Aug 2006 10:22:34 +0100
typedef std::basic_string < wchar_t > SHWideString;
bool GetItemsByName( SHWideString& wsItemName, std::list<SHItem*>&
INamed );
pFmWnd->GetItemsByName( SHWideString(L"ItemSwitch"), lNamed );
You are calling a function that takes a non-const reference, but you're
constructing a value on the stack. This is not permitted (VS.Net will
let you do it, but it gives you a warning). Try making GetItemsByName()
take a const string reference instead.
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden