Browse Source

[1599] Comment on unsupported method

Michal 'vorner' Vaner 13 years ago
parent
commit
3b8892835a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/lib/asiodns/sync_udp_server.h

+ 5 - 0
src/lib/asiodns/sync_udp_server.h

@@ -104,6 +104,11 @@ public:
 
     /// \brief Clones the object
     ///
+    /// Since cloning is for the use of coroutines, the synchronous UDP server
+    /// does not need to be cloned. Therefore supporting it would be needless
+    /// work, and trying to clone it would be a programmer error anyway, this
+    /// throws Unexpected.
+    ///
     /// \return a newly allocated copy of this object
     virtual DNSServer* clone() {
         isc_throw(Unexpected, "SyncUDPServer can't be cloned.");