class URL { private: std::string url; public: URL() :url{""} {} URL(const std::string& value) :url{value} {} URL& operator=(const std::string& value); URL& operator=(const char*& value); }; URL& URL::operator=(const std::string& value) { url = value; return *this; } URL& URL::operator=(const char*& value) { url = value; return *this; }