I
ishekar
Hi all,
Dont hit me for asking this in this forum but i feel this question is
related to allocators hence i think its the right place.
I was trying to use the list of CComBSTR but was getting this error. can
anyone tell me why, is there a workaround
list<CComBSTR> lstStr;
lstStr.push_back(CComBSTR(L"test"));
e:\program files\microsoft visual studio\vc98\include\list(222) : error
C2664: 'construct' : cannot convert parameter 1 from 'unsigned short ** ' to
'class ATL::CComBSTR *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
e:\program files\microsoft visual studio\vc98\include\list(218) :
while compiling class-template member function 'class std::list<class
ATL::CComBSTR,class std::allocator<class ATL::CComBSTR> >::iterator
__thiscall std::list<class ATL::CComB
The above error is found in the line
allocator.construct(&_Acc::_Value(_S), _X);
TFH
ISR
Dont hit me for asking this in this forum but i feel this question is
related to allocators hence i think its the right place.
I was trying to use the list of CComBSTR but was getting this error. can
anyone tell me why, is there a workaround
list<CComBSTR> lstStr;
lstStr.push_back(CComBSTR(L"test"));
e:\program files\microsoft visual studio\vc98\include\list(222) : error
C2664: 'construct' : cannot convert parameter 1 from 'unsigned short ** ' to
'class ATL::CComBSTR *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
e:\program files\microsoft visual studio\vc98\include\list(218) :
while compiling class-template member function 'class std::list<class
ATL::CComBSTR,class std::allocator<class ATL::CComBSTR> >::iterator
__thiscall std::list<class ATL::CComB
Error executing cl.exe.::iterator,const class ATL::CComBSTR &)'
The above error is found in the line
allocator.construct(&_Acc::_Value(_S), _X);
TFH
ISR