aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/destringify.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/destringify.hh')
-rw-r--r--paludis/util/destringify.hh8
1 files changed, 1 insertions, 7 deletions
diff --git a/paludis/util/destringify.hh b/paludis/util/destringify.hh
index 1a97d014c..11452746a 100644
--- a/paludis/util/destringify.hh
+++ b/paludis/util/destringify.hh
@@ -151,7 +151,7 @@ namespace paludis
*
* \ingroup g_strings
*/
- template <typename Type_, typename Exception_>
+ template <typename Type_, typename Exception_ = DestringifyError>
Type_ destringify(const std::string & s)
{
if (s == "")
@@ -159,12 +159,6 @@ namespace paludis
return destringify_internals::Destringifier<Type_, Exception_>::do_destringify(s);
}
-
- template <typename Type_>
- Type_ destringify(const std::string & s)
- {
- return destringify<Type_, DestringifyError>(s);
- }
}
#endif