diff options
Diffstat (limited to 'louloulibs/utils/string.cpp')
-rw-r--r-- | louloulibs/utils/string.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/louloulibs/utils/string.cpp b/louloulibs/utils/string.cpp new file mode 100644 index 0000000..3977feb --- /dev/null +++ b/louloulibs/utils/string.cpp @@ -0,0 +1,6 @@ +#include <utils/string.hpp> + +bool to_bool(const std::string& val) +{ + return (val == "1" || val == "true"); +} |