[DEV] WORK on a port for BOOST
This commit is contained in:
parent
96e5e72248
commit
63b327cb67
@ -57,7 +57,7 @@ std::ostream& audio::operator <<(std::ostream& _os, const std::vector<enum audio
|
||||
return _os;
|
||||
}
|
||||
|
||||
std::ostream& audio::operator <<(std::ostream& _os, const std::vector<std::vector<enum audio::channel>>& _obj) {
|
||||
std::ostream& audio::operator <<(std::ostream& _os, const std::vector<std::vector<enum audio::channel> >& _obj) {
|
||||
_os << std::string("{");
|
||||
for (size_t iii=0; iii<_obj.size(); ++iii) {
|
||||
if (iii!=0) {
|
||||
@ -82,8 +82,8 @@ enum audio::channel audio::getChannelFromString(const std::string& _value) {
|
||||
std::vector<enum audio::channel> audio::getListChannelFromString(const std::string& _value) {
|
||||
std::vector<enum audio::channel> out;
|
||||
std::vector<std::string> list = etk::split(_value, ';');
|
||||
for (auto &it : list) {
|
||||
out.push_back(getChannelFromString(it));
|
||||
for (size_t iii=0; iii<list.size(); ++iii) {
|
||||
out.push_back(getChannelFromString(list[iii]));
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace audio {
|
||||
std::vector<enum audio::channel> getListChannelFromString(const std::string& _value);
|
||||
std::ostream& operator <<(std::ostream& _os, enum audio::channel _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const std::vector<enum audio::channel>& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const std::vector<std::vector<enum audio::channel>>& _obj);
|
||||
std::ostream& operator <<(std::ostream& _os, const std::vector<std::vector<enum audio::channel> >& _obj);
|
||||
};
|
||||
|
||||
|
||||
|
@ -56,8 +56,8 @@ enum audio::format audio::getFormatFromString(const std::string& _value) {
|
||||
std::vector<enum audio::format> audio::getListFormatFromString(const std::string& _value) {
|
||||
std::vector<enum audio::format> out;
|
||||
std::vector<std::string> list = etk::split(_value, ';');
|
||||
for (auto &it : list) {
|
||||
out.push_back(getFormatFromString(it));
|
||||
for (size_t iii=0; iii<list.size(); ++iii) {
|
||||
out.push_back(getFormatFromString(list[iii]));
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user