I am looking to convert a char array defined as
char pstrInputClaim[]
to a std::wstring
trying to use the constructor as below
yields this error.
Error 2 error C2664: 'std::basic_str ing<_Elem,_Trai ts,_Ax>::basic_ string(std::bas ic_string<_Elem ,_Traits,_Ax>:: _Has_debug_it)' : cannot convert parameter 1 from 'char []' to 'std::basic_str ing<_Elem,_Trai ts,_Ax>::_Has_d ebug_it' c:\Facets\TRG_4 61\Applications \Meta\FEP\FEPAd apter\FEPAdapte rWrapperCPP2\FE PAdapterMain.cp p 46
any help on how to convert a char array to wstring would be appreciated.
char pstrInputClaim[]
to a std::wstring
trying to use the constructor as below
Code:
std::wstring strInputClaim(pstrInputClaim);
Error 2 error C2664: 'std::basic_str ing<_Elem,_Trai ts,_Ax>::basic_ string(std::bas ic_string<_Elem ,_Traits,_Ax>:: _Has_debug_it)' : cannot convert parameter 1 from 'char []' to 'std::basic_str ing<_Elem,_Trai ts,_Ax>::_Has_d ebug_it' c:\Facets\TRG_4 61\Applications \Meta\FEP\FEPAd apter\FEPAdapte rWrapperCPP2\FE PAdapterMain.cp p 46
any help on how to convert a char array to wstring would be appreciated.
Comment