• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

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

Member
Aug
Threads
3
31
1
0
6

AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!

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,381
2
1,308
113
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.
 
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
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