-rw-r--r-- | include/opkele/discovery.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/opkele/discovery.h b/include/opkele/discovery.h index 7865fb2..af4aa29 100644 --- a/include/opkele/discovery.h +++ b/include/opkele/discovery.h @@ -14,21 +14,27 @@ namespace opkele { struct idiscovery_t { bool xri_identity; string normalized_id; string canonicalized_id; xrd::XRD_t xrd; + idiscovery_t() { } idiscovery_t(const string& i) { idiscover(*this,i); } idiscovery_t(const char *i) { idiscover(*this,i); } void clear() { normalized_id.clear(); canonicalized_id.clear(); xrd.clear(); } + + idiscovery_t& operator=(const string& i) { + idiscover(*this,i); return *this; } + idiscovery_t& operator=(const char *i) { + idiscover(*this,i); return *this; } }; } #endif /* __OPKELE_DISCOVERY_H */ |