mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-19 19:21:43 +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 <vector>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <iostream>
|
||||
|
||||
#include "sampleFormat.h"
|
||||
|
@ -62,9 +61,9 @@ void SampleFormat::setFormat(const std::string& format)
|
|||
boost::split(strs, format, boost::is_any_of(":"));
|
||||
if (strs.size() == 3)
|
||||
setFormat(
|
||||
boost::lexical_cast<uint32_t>(strs[0]),
|
||||
boost::lexical_cast<uint16_t>(strs[1]),
|
||||
boost::lexical_cast<uint16_t>(strs[2]));
|
||||
std::stoul(strs[0]),
|
||||
std::stoul(strs[1]),
|
||||
std::stoul(strs[2]));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue