Skip to content

Commit

Permalink
Fix 3ds Max plugin build under C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
kaetemi committed Mar 1, 2023
1 parent abee92c commit 907ebb9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nel/tools/3d/plugin_max/nel_mesh_lib/export_anim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2230,8 +2230,11 @@ void CSSSBuild::compile(NL3D::CAnimation &dest, const char* sBaseName)
std::string &line= lines[k];

// remove any '\r'
line.resize( std::remove_if(line.begin(), line.end(), std::bind2nd(std::equal_to<char>(), '\r') )
- line.begin() );
#ifndef NL_CPP17
line.resize(std::remove_if(line.begin(), line.end(), std::bind2nd(std::equal_to<char>(), '\r')) - line.begin());
#else
line.resize(std::remove_if(line.begin(), line.end(), std::bind(std::equal_to<char>(), std::placeholders::_1, '\r')) - line.begin());
#endif

// parse
static std::vector<std::string> words;
Expand Down

0 comments on commit 907ebb9

Please sign in to comment.