November 07, 2009 [Issue 3484] New: std.socket.Address hierarchy not const-safe | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3484 Summary: std.socket.Address hierarchy not const-safe Product: D Version: 2.034 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: Justin.SpahrSummers@gmail.com --- Comment #0 from Justin Spahr-Summers <Justin.SpahrSummers@gmail.com> 2009-11-07 05:01:49 CST --- The methods of the std.socket.Address and std.socket.InternetAddress classes are not qualified const; thus, when trying to use const-safe structures containing addresses, a lot of casts are required. This problem is exacerbated by the fact that addresses aren't value types (structs). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 24, 2011 [Issue 3484] std.socket.Address hierarchy not const-safe | ||||
---|---|---|---|---|
| ||||
Posted in reply to Justin Spahr-Summers | http://d.puremagic.com/issues/show_bug.cgi?id=3484 Vladimir Panteleev <thecybershadow@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thecybershadow@gmail.com --- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> 2011-08-23 23:41:49 PDT --- https://github.com/D-Programming-Language/phobos/pull/211 Note that Address.name() can't be const, since it can be used (and is used, within std.socket) to populate the Address data. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation