# HG changeset patch # User Sebastien Jodogne # Date 1531398723 -7200 # Node ID a191bbd55a2b452ac1977256e8f1feb482b9529c # Parent 062776ab4a218c86e350079b0b2a2697cb42c79c fix for older versions of boost diff -r 062776ab4a21 -r a191bbd55a2b Core/EnumerationDictionary.h --- a/Core/EnumerationDictionary.h Thu Jul 12 12:55:48 2018 +0200 +++ b/Core/EnumerationDictionary.h Thu Jul 12 14:32:03 2018 +0200 @@ -84,10 +84,12 @@ Enumeration Translate(const std::string& str) const { - int value; - if (boost::conversion::try_lexical_convert(str, value)) + try { - return static_cast(value); + return static_cast(boost::lexical_cast(str)); + } + catch (boost::bad_lexical_cast&) + { } typename StringToEnumeration::const_iterator