mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
set minimal boost version; remove #ifdef boost version checks
This commit is contained in:
parent
b66ba7c718
commit
4032b754e4
4 changed files with 1 additions and 28 deletions
|
@ -14,11 +14,7 @@ void Fallback::validate(boost::any& v, std::vector<std::string> const& tokens, F
|
|||
std::string temp = Files::EscapeHashString::processString(token);
|
||||
size_t sep = temp.find(",");
|
||||
if (sep < 1 || sep == temp.length() - 1 || sep == std::string::npos)
|
||||
#if (BOOST_VERSION < 104200)
|
||||
throw boost::program_options::validation_error("invalid value");
|
||||
#else
|
||||
throw boost::program_options::validation_error(boost::program_options::validation_error::invalid_option_value);
|
||||
#endif
|
||||
|
||||
std::string key(temp.substr(0, sep));
|
||||
std::string value(temp.substr(sep + 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue