Changeset 284566 in webkit
- Timestamp:
- Oct 20, 2021, 2:07:20 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/ImagePaintingOptions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r284550 r284566 1 2021-10-20 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 The code decoding std::optional<ImagePaintingOptions> can't be compiled by PlayStation due to the ImagePaintingOptions template constructor 4 https://bugs.webkit.org/show_bug.cgi?id=231980 5 6 Reviewed by Ross Kirsling. 7 8 PlayStation clang can't compile the following code. 9 > std::optional<ImagePaintingOptions> val; 10 > decoder >> val; 11 12 It reports the following error. 13 > include\type_traits:3825:31: error: no member named 'value' in 'std::is_convertible<optional<WebCore::ImagePaintingOptions> &, WebCore::ImagePaintingOptions>' 14 15 * platform/graphics/ImagePaintingOptions.h: 16 (WebCore::ImagePaintingOptions::ImagePaintingOptions): Use SFINAE 17 for the first template constructor not to conflict with the second 18 one. 19 1 20 2021-10-20 Sihui Liu <sihui_liu@apple.com> 2 21 -
trunk/Source/WebCore/platform/graphics/ImagePaintingOptions.h
r283287 r284566 33 33 34 34 struct ImagePaintingOptions { 35 template<typename ... Options>36 ImagePaintingOptions( Options... options)35 template<typename First, typename... Rest, typename = std::enable_if_t<!std::is_same_v<std::decay_t<First>, ImagePaintingOptions>>> 36 ImagePaintingOptions(First first, Rest... rest) 37 37 { 38 setOption( options...);38 setOption(first, rest...); 39 39 } 40 40
Note:
See TracChangeset
for help on using the changeset viewer.