BIND 10 #2104: bare shared_ptr in static_datasrc_link.cc

BIND 10 Development do-not-reply at isc.org
Mon Jul 2 15:17:18 UTC 2012


#2104: bare shared_ptr in static_datasrc_link.cc
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:
  fdupont                            |                Status:  new
                       Type:         |             Milestone:  Next-Sprint-
  defect                             |  Proposed
                   Priority:  high   |            Resolution:
                  Component:         |             Sensitive:  0
  Unclassified                       |           Sub-Project:  Core
                   Keywords:         |  Estimated Difficulty:  0
            Defect Severity:         |           Total Hours:  0
  Medium                             |
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by fdupont):

 Replying to [comment:3 vorner]:
 > Why is this „fix“ needed? There should be `using boost` at the top, so
 it should be found and I think the longer name is uglier.

 => you have (cur & paste from the file in the title):

 using namespace boost;
 using namespace std;

 so how to choose between boost::shared_ptr and std::shared_ptr when you
 have a bare shared_ptr? In conclusion namespaces can solve conflicts only
 when they are use.
 (BTW the source of the issue is the TR1: Microsoft implements it and
 shared_ptr is part of it)

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


More information about the bind10-tickets mailing list