Andrej08
Joined: 31 Aug 2010 Posts: 51
|
Posted: Thu Jul 28, 2011 4:16 pm Post subject: WinAPI min/max |
|
|
Can we get rid of these two from win32.windef:
Code: |
template max(T) {
T max(T a, T b)
{
return a > b ? a : b;
}
}
template min(T) {
T min(T a, T b)
{
return a < b ? a : b;
}
}
|
I don't see what they're doing here in the first place. Doesn't D1 have min/max defined as a template somewhere? D2's std.algorithm constantly clashes with these unrestricted templates.
They should be nuked from win32.windef imo. |
|