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_bac k(CComBSTR(L"te st"));
e:\program files\microsoft visual studio\vc98\inc lude\list(222) : error
C2664: 'construct' : cannot convert parameter 1 from 'unsigned short ** ' to
'class ATL::CComBSTR *'
Types pointed to are unrelated; conversion requires
reinterpret_cas t, C-style cast or function-style cast
e:\program files\microsoft visual studio\vc98\inc lude\list(218) :
while compiling class-template member function 'class std::list<class
ATL::CComBSTR,c lass std::allocator< class ATL::CComBSTR> >::iterator
__thiscall std::list<class ATL::CComB
STR,class std::allocator< class ATL::CComBSTR> >::insert(cla ss
std::list<class ATL::CComBSTR,c lass std::allocator< class ATL::CComBSTR>[color=blue]
>::iterator,con st class ATL::CComBSTR &)'[/color]
Error executing cl.exe.
The above error is found in the line
allocator.const ruct(&_Acc::_Va lue(_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_bac k(CComBSTR(L"te st"));
e:\program files\microsoft visual studio\vc98\inc lude\list(222) : error
C2664: 'construct' : cannot convert parameter 1 from 'unsigned short ** ' to
'class ATL::CComBSTR *'
Types pointed to are unrelated; conversion requires
reinterpret_cas t, C-style cast or function-style cast
e:\program files\microsoft visual studio\vc98\inc lude\list(218) :
while compiling class-template member function 'class std::list<class
ATL::CComBSTR,c lass std::allocator< class ATL::CComBSTR> >::iterator
__thiscall std::list<class ATL::CComB
STR,class std::allocator< class ATL::CComBSTR> >::insert(cla ss
std::list<class ATL::CComBSTR,c lass std::allocator< class ATL::CComBSTR>[color=blue]
>::iterator,con st class ATL::CComBSTR &)'[/color]
Error executing cl.exe.
The above error is found in the line
allocator.const ruct(&_Acc::_Va lue(_S), _X);
TFH
ISR
Comment