And I just remembered Tuples can be constructed just like regular structs
(which they are underneath):
RGBTuple GetRGB(COLORREF cref)
{
return RGBTuple(GetRValue(cref), GetGValue(cref), GetBValue(cref));
}
- Why are unsigned to signed conversions implicit and don't... Andrej Mitrovic
- Re: Why are unsigned to signed conversions implicit ... Andrej Mitrovic
- Re: Why are unsigned to signed conversions implicit ... bearophile
- Re: Why are unsigned to signed conversions impli... Jonathan M Davis
- Re: Why are unsigned to signed conversions i... Andrew Wiley
- Re: Why are unsigned to signed conversions impli... bearophile
- Re: Why are unsigned to signed conversions impli... spir
- Re: Why are unsigned to signed conversions impli... SimonM
