Replaced boost::tokenizer with std::istringstream

Changes based on f0f6f61cab
dev
Tomasz Kapuściński 2023-08-09 19:40:54 +02:00
parent 1b69589302
commit 7d3e3c91e8
1 changed files with 4 additions and 5 deletions

View File

@ -49,8 +49,6 @@
#include "sound/oalsound/alsound.h" #include "sound/oalsound/alsound.h"
#endif #endif
#include <boost/tokenizer.hpp>
#include <SDL.h> #include <SDL.h>
#include <SDL_image.h> #include <SDL_image.h>
@ -1689,9 +1687,10 @@ bool CApplication::ParseDebugModes(const std::string& str, int& debugModes)
{ {
debugModes = 0; debugModes = 0;
boost::char_separator<char> sep(","); std::istringstream stream(str);
boost::tokenizer<boost::char_separator<char>> tokens(str, sep); std::string modeToken;
for (const auto& modeToken : tokens)
while (std::getline(stream, modeToken, ','))
{ {
if (modeToken == "sys_events") if (modeToken == "sys_events")
{ {