mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-15 07:35:41 +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
|
@ -18,7 +18,6 @@
|
|||
|
||||
#include <iostream>
|
||||
#include <sys/resource.h>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/program_options.hpp>
|
||||
|
||||
#include "common/daemon.h"
|
||||
|
@ -41,7 +40,7 @@ PcmDevice getPcmDevice(const std::string& soundcard)
|
|||
|
||||
try
|
||||
{
|
||||
soundcardIdx = boost::lexical_cast<int>(soundcard);
|
||||
soundcardIdx = std::stoi(soundcard);
|
||||
for (auto dev: pcmDevices)
|
||||
if (dev.idx == soundcardIdx)
|
||||
return dev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue