Swap toHostOrder template parameters

This commit is contained in:
Eugen Wissner 2017-04-03 15:32:15 +02:00
parent b458250ad7
commit bc2a6d2703

View File

@ -298,14 +298,14 @@ version (PlattformUnittest)
* failure will be caused. * failure will be caused.
* *
* Params: * Params:
* R = Range type.
* T = Desired return type. * T = Desired return type.
* R = Range type.
* range = Input range. * range = Input range.
* *
* Returns: Integral representation of $(D_PARAM range) with the host byte * Returns: Integral representation of $(D_PARAM range) with the host byte
* order. * order.
*/ */
T toHostOrder(R, T = size_t)(R range) T toHostOrder(T = size_t, R)(R range)
if (isInputRange!R if (isInputRange!R
&& !isInfinite!R && !isInfinite!R
&& is(Unqual!(ElementType!R) == ubyte) && is(Unqual!(ElementType!R) == ubyte)