BIND 10 #1283: define operator<< for IOAddress

BIND 10 Development do-not-reply at isc.org
Fri Oct 7 22:25:03 UTC 2011


#1283: define operator<< for IOAddress
-------------------------------------+-------------------------------------
            Reporter:  jinmei        |                        Owner:
                Type:  defect        |  UnAssigned
            Priority:  major         |                       Status:  new
           Component:  build system  |                    Milestone:  Next-
           Sensitive:  0             |  Sprint-Proposed
         Sub-Project:  Core          |                     Keywords:
Estimated Difficulty:  0             |              Defect Severity:  N/A
         Total Hours:  0             |  Feature Depending on Ticket:
                                     |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
 In commit 54aad8af a type conversion operator for the asiolink::IOAddress
 class.  It triggered this test failure:

 http://git.bind10.isc.org/~tester/builder/BIND10/20111007175000-Solaris10
 -sparc-Sunstudio/logs/unittests.out

 I hope we share this opinion, but IMO type conversion operators
 are one of the most evil beasts of C++ and we should generally
 avoid using it.

 In this particular, what we should actually do is to define operator<<
 for IOAddress (which would be useful for this type of class anyway).
 Then we'll be able to use them in EXPECT_EQ.

-- 
Ticket URL: <http://bind10.isc.org/ticket/1283>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list