summaryrefslogtreecommitdiff
path: root/src/utils/get_first_non_empty.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/get_first_non_empty.hpp')
-rw-r--r--src/utils/get_first_non_empty.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/utils/get_first_non_empty.hpp b/src/utils/get_first_non_empty.hpp
index 2e1828d..6129b63 100644
--- a/src/utils/get_first_non_empty.hpp
+++ b/src/utils/get_first_non_empty.hpp
@@ -2,8 +2,13 @@
#include <string>
+template <typename T>
+bool is_empty(const T& val)
+{
+ return val == 0;
+}
+template <>
bool is_empty(const std::string& val);
-bool is_empty(const int& val);
template <typename T>
T& get_first_non_empty(T&& last)