summaryrefslogtreecommitdiff
path: root/src/include/address.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/address.h')
-rw-r--r--src/include/address.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/include/address.h b/src/include/address.h
index 2cb4aef..2e354be 100644
--- a/src/include/address.h
+++ b/src/include/address.h
@@ -1,14 +1,15 @@
/**
- * @file address.h
- * @brief Declaration of the Address class.
- * @author Andreas Aardal Hanssen
- * @date 2002-2005
+ * @file address.h
+ * @brief Declaration of the Address class.
+ * @author Andreas Aardal Hanssen
+ * @date 2002-2005
*/
#ifndef address_h_included
#define address_h_included
#include <string>
+#include <string_view>
namespace Binc {
@@ -19,8 +20,8 @@ namespace Binc {
std::string toParenList() const;
- Address(const std::string &name, const std::string &addr);
- Address(const std::string &wholeaddr);
+ static Address from(std::string name, std::string_view addr);
+ static Address from(std::string_view wholeaddr);
};
}