Skip to content

Commit d0444ef

Browse files
authored
Merge pull request #28564 from meeseeksmachine/auto-backport-of-pr-28534-on-v3.9.x
Backport PR #28534 on branch v3.9.x ([BLD] Fix WSL build warning)
2 parents ab1fd69 + fadfe84 commit d0444ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_image_resample.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ typedef enum {
500500

501501
// T is rgba if and only if it has an T::r field.
502502
template<typename T, typename = void> struct is_grayscale : std::true_type {};
503-
template<typename T> struct is_grayscale<T, decltype(T::r, void())> : std::false_type {};
503+
template<typename T> struct is_grayscale<T, std::void_t<decltype(T::r)>> : std::false_type {};
504504

505505

506506
template<typename color_type>

0 commit comments

Comments
 (0)