1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-22 13:09:42 +00:00
This commit is contained in:
Sebastian Wick 2012-04-04 23:52:42 +02:00
parent 8c84f68dab
commit 56c9992b29

View file

@ -72,11 +72,11 @@ void validate(boost::any &v, std::vector<std::string> const &tokens, FallbackMap
{
int sep = it->find(",");
if(sep < 1 || sep == (int)it->length()-1)
#if (BOOST_VERSION <= 104200)
#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 /* #if (BOOST_VERSION <= 104200) */
#endif/
std::string key(it->substr(0,sep));
std::string value(it->substr(sep+1));