From cff7375cc115e8810920a79661214c6cd626ad0c Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 2 Jan 2020 11:19:09 +1100 Subject: [PATCH] uri: constructors should be implicit for ease of use They don't act like other classes, or implicitly convert to other classes, so the risks are minimal. --- uri.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uri.hpp b/uri.hpp index 6407484c..8503f1ee 100644 --- a/uri.hpp +++ b/uri.hpp @@ -32,10 +32,10 @@ namespace cruft { // any given protocol). eg, the "tel" is unlikely to have port numbers. class uri { public: - explicit uri (std::string &&); - explicit uri (const std::string&); - explicit uri (const char *); - explicit uri (cruft::view); + uri (std::string &&); + uri (const std::string&); + uri (const char *); + uri (view); class parse_error : public std::runtime_error { using runtime_error::runtime_error; };