mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-25 06:56:15 +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 <cstring>
|
||||
|
||||
|
@ -137,9 +136,9 @@ void OggEncoder::initEncoder()
|
|||
double quality = 1.0;
|
||||
try
|
||||
{
|
||||
quality = boost::lexical_cast<double>(qual);
|
||||
quality = std::stod(qual);
|
||||
}
|
||||
catch(boost::bad_lexical_cast)
|
||||
catch(...)
|
||||
{
|
||||
throw SnapException("Invalid codec option: \"" + codecOptions_ + "\"");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue