aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/util/destringify.hh10
1 files changed, 1 insertions, 9 deletions
diff --git a/paludis/util/destringify.hh b/paludis/util/destringify.hh
index cf09b7ea6..1a97d014c 100644
--- a/paludis/util/destringify.hh
+++ b/paludis/util/destringify.hh
@@ -121,15 +121,7 @@ namespace paludis
else if (s == "false")
return false;
else
- {
- std::istringstream ss(s);
- int i;
- ss >> i;
- if (ss.eof() && ! ss.bad())
- return i > 0;
- else
- throw Exception_(s);
- }
+ return Destringifier<int, Exception_>::do_destringify(s) > 0;
}
};