BIND 10 #1601: pass reference instead of shared pointer within AuthSrv

BIND 10 Development do-not-reply at isc.org
Mon Jan 23 14:53:56 UTC 2012


#1601: pass reference instead of shared pointer within AuthSrv
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:
  jinmei                             |                Status:  new
                       Type:  task   |             Milestone:  Next-Sprint-
                   Priority:  major  |  Proposed
                  Component:         |            Resolution:
  b10-auth                           |             Sensitive:  0
                   Keywords:         |           Sub-Project:  DNS
            Defect Severity:  N/A    |  Estimated Difficulty:  0
Feature Depending on Ticket:  auth   |           Total Hours:  0
  performance                        |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by stephen):

 If the code currently uses shared pointers, it is less of a change to pass
 a reference to the pointer through - just add an ampersand to the argument
 type in the method signature.  (I think we should do this everywhere -
 although we've discussed this in the past.) However, it is probably
 clearer to dereference the pointer and pass the reference to the object
 through to the internal method.

-- 
Ticket URL: <http://bind10.isc.org/ticket/1601#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list