[svn] commit: r385 - /branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.h

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Dec 18 07:38:12 UTC 2009


Author: jinmei
Date: Fri Dec 18 07:38:12 2009
New Revision: 385

Log:
note about the private default constructor.

Modified:
    branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.h

Modified: branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.h
==============================================================================
--- branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.h (original)
+++ branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.h Fri Dec 18 07:38:12 2009
@@ -190,6 +190,11 @@
     //@{
 private:
     /// The default constructor
+    ///
+    /// This is used internally in the class implementation, but at least at
+    /// the moment defined as private because it will construct an incomplete
+    /// object in that it doesn't have any labels.  We may reconsider this
+    /// design choice as we see more applications of the class.
     Name() : length_(0), labels_(0) {}
 public:
     /// Constructor from a string




More information about the bind10-changes mailing list