- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
bool valueToString(std::string_view str, float& value) try {
const auto end = std::numeric_limits<std::size_t>::max();
const float parsed = std::stof(str.data(), &end);
if (end != str.size())
return false;
value = parsed;
return true;
} catch (...) {
return false;
}
Antervis 22.09.2017 20:44 # 0
Elvenfighter 23.09.2017 17:37 # 0
Antervis 24.09.2017 15:42 # 0
Elvenfighter 27.09.2017 01:19 # 0
Elvenfighter 24.09.2017 00:37 # +1
inho 24.09.2017 23:09 # 0
?
Xom94ok 25.09.2017 21:17 # +1