Sorry that I forgot to add my build log here.
============================================================================
===========================
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstring(1525)
: error C2621: member 'std::basic_string<_Elem>::_Bxty::_Buf' of union
'std::basic_string<_Elem>::_Bxty' has copy constructor
with
[
_Elem=std::wstring
]
and
[
_Elem=std::wstring
]
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xstring(1527) : see reference to class template
instantiation 'std::basic_string<_Elem>::_Bxty' being compiled
with
[
_Elem=std::wstring
]
e:\projects\server\server.cpp(348) : see reference to class template
instantiation 'std::basic_string<_Elem>' being compiled
with
[
_Elem=std::wstring
]
============================================================================
================================
[quoted text, click to view] "Neo" <neochou@hotmail.com> wrote in message
news:emCwKE$DEHA.1268@TK2MSFTNGP09.phx.gbl...
> Greetings!
>
> I'm now building some VC6-compatible programs under VC7 (VS.NET 2003).
Here
> is my problem:
>
> vector<wstring>::iterator itArgv;
> // ......
> if (basic_string<wstring>::npos !=
> itArgv->find_first_of(L"ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1)) // error C2621
> {
> // ......
> }
>
> Based on the header file "xstring", "find_first_of" returns "npos" when
the
> data specified cannot be found. How can I test the return value without
> C2621?
>
> Thanks in advance!
>
> Neo
>
>
>