mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-10 15:46:42 +02:00
replaced boost::lexical_cast with c++11 functions
This commit is contained in:
parent
734adb8852
commit
c8e58f272f
9 changed files with 10 additions and 36 deletions
|
@ -16,7 +16,6 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <iostream>
|
||||
|
||||
#include "flacEncoder.h"
|
||||
|
@ -139,9 +138,9 @@ void FlacEncoder::initEncoder()
|
|||
int quality(2);
|
||||
try
|
||||
{
|
||||
quality = boost::lexical_cast<int>(codecOptions_);
|
||||
quality = std::stoi(codecOptions_);
|
||||
}
|
||||
catch(boost::bad_lexical_cast)
|
||||
catch(...)
|
||||
{
|
||||
throw SnapException("Invalid codec option: \"" + codecOptions_ + "\"");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue