Not answered [Need Help] Cant Convert "delete":"_Ty2" into "void*" in Stl.h



Thread Author
Member
Aug
Threads
3
31
1
0
6
Rating - 0%
0   0   0
Hey :D
I want to implement a Wiki and now I get in the Client Source Stl.h
in the stl_wipe_second Function an Error:
Function:
template<typename TContainer>
inline void stl_wipe_second(TContainer& container)
{
for (/*TContainer::iterator*/ auto i = container.begin(); i != container.end(); ++i)
{
delete i->second;
}


container.clear();
}

Following Error:
I
" "delete": "_Ty2" cant get converted into "void*".

The error occurs on the line: delete i->second;
Does some1 know how to fix this?
 
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,435
2
1,340
113
Rating - 0%
0   0   0
Hey :D
I want to implement a Wiki and now I get in the Client Source Stl.h
in the stl_wipe_second Function an Error:
Function:
template<typename TContainer>
inline void stl_wipe_second(TContainer& container)
{
for (/*TContainer::iterator*/ auto i = container.begin(); i != container.end(); ++i)
{
delete i->second;
}


container.clear();
}

Following Error:
I
" "delete": "_Ty2" cant get converted into "void*".

The error occurs on the line: delete i->second;
Does some1 know how to fix this?

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock