BIND 10 #2320: Allocation engine v4: Address assignment
BIND 10 Development
do-not-reply at isc.org
Tue Jan 8 17:23:58 UTC 2013
#2320: Allocation engine v4: Address assignment
-------------------------------------+-------------------------------------
Reporter: tomek | Owner:
Type: task | stephen
Priority: medium | Status:
Component: dhcp4 | reviewing
Keywords: | Milestone:
Sensitive: 0 | Sprint-DHCP-20130122
Sub-Project: DHCP | Resolution:
Estimated Difficulty: 0 | CVSS Scoring:
Total Hours: 0 | Defect Severity: N/A
| Feature Depending on Ticket:
| Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
Changes (by tomek):
* owner: tomek => stephen
Comment:
This trick with default parameters in derived classes won't work. See
attached subnet.cc. Try to guess what will the code print out before you
run it. I was quite surprised.
The explanation is that the default parameter is something that is used
during compilation. Type of used default value depends on the type of
pointer used, not the type of object pointed to (that can be only resolved
at runtime). So here you have an example of a base pointer to an object of
derived class with a default value from base class calling method from a
derived class.
Let's keep the code as it is now.
Ok, the ticket is back with you.
--
Ticket URL: <http://bind10.isc.org/ticket/2320#comment:9>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list