diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-01-22 14:55:48 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-08 18:43:02 +0300 |
commit | aef171cd9a6948deb379be3515b972a0e9dcce13 (patch) | |
tree | 02fb0e4b07b4921370efe379fa5612f2f08620e8 | |
parent | 6202224d079b704ffb9cfbc6972de2be60d38a97 (diff) |
Make repository_url(string) ctor explicit
-rw-r--r-- | libbpkg/manifest.hxx | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/libbpkg/manifest.hxx b/libbpkg/manifest.hxx index 905eea1..e00e551 100644 --- a/libbpkg/manifest.hxx +++ b/libbpkg/manifest.hxx @@ -478,26 +478,8 @@ namespace bpkg // the object as a local path if it is absolute and there is no fragment or // authority present. // - struct LIBBPKG_EXPORT repository_url: butl::basic_url<repository_protocol, - repository_url_traits> - { - using base_type = basic_url<repository_protocol, repository_url_traits>; - - using base_type::base_type; - - // Create an empty URL object. - // - repository_url () = default; - - // If the argument is an empty string, then create an empty URL object. If - // the argument is a local path or a file URL then create a local URL - // object. Otherwise create a remote URL object. - // - // May throw std::invalid_argument (unknown URL schema, incorrect syntax, - // unexpected components, etc). - // - repository_url (const string_type& s): base_type (s) {} - }; + using repository_url = butl::basic_url<repository_protocol, + repository_url_traits>; // Repository type. // |