mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	put the wstring stoi too in the ignore-on-vc2010 #if
This commit is contained in:
		@@ -809,6 +809,11 @@ inline s32 stoi(std::string s)
 | 
			
		||||
	return atoi(s.c_str());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
inline s32 stoi(std::wstring s)
 | 
			
		||||
{
 | 
			
		||||
	return atoi(wide_to_narrow(s).c_str());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
inline float stof(std::string s)
 | 
			
		||||
{
 | 
			
		||||
	float f;
 | 
			
		||||
@@ -819,11 +824,6 @@ inline float stof(std::string s)
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
inline s32 stoi(std::wstring s)
 | 
			
		||||
{
 | 
			
		||||
	return atoi(wide_to_narrow(s).c_str());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
inline std::string itos(s32 i)
 | 
			
		||||
{
 | 
			
		||||
	std::ostringstream o;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user