Catch-all for std::invalid_argument for g++<8 (#84)
This commit is contained in:
1 parent
859d3f3c3c
commit
cb018bf335
2 files changed
+2
-2
No files matched your search
@@ -92,7 +92,7 @@ int main(int argc, char *argv[]) {
|
|||||||
float threshold = 0.0f;
|
float threshold = 0.0f;
|
||||||
try {
|
try {
|
||||||
threshold = stof(config["threshold"]);
|
threshold = stof(config["threshold"]);
|
||||||
} catch (std::invalid_argument) {
|
} catch (...) {
|
||||||
}
|
}
|
||||||
// create swipe handler
|
// create swipe handler
|
||||||
gesture_swipe_xdokey keyswipe(commands, threshold);
|
gesture_swipe_xdokey keyswipe(commands, threshold);
|
||||||
|
|||||||
Reference in new issue
Block a user