aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/selene/trivial-pixel.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/selene/trivial-pixel.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/selene/trivial-pixel.patch')
-rw-r--r--vcpkg/ports/selene/trivial-pixel.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/selene/trivial-pixel.patch b/vcpkg/ports/selene/trivial-pixel.patch
new file mode 100644
index 0000000..9aeb7e4
--- /dev/null
+++ b/vcpkg/ports/selene/trivial-pixel.patch
@@ -0,0 +1,23 @@
+--- a/selene/img/pixel/Pixel.hpp
++++ b/selene/img/pixel/Pixel.hpp
+@@ -45,6 +45,6 @@
+ constexpr Pixel() noexcept = default; ///< Default constructor. Pixel values are uninitialized.
+
+- template <typename... Args, typename = std::enable_if_t<sizeof...(Args) == nr_channels_>>
+- constexpr Pixel(Args... args) noexcept;
++ template <typename Arg1, typename... Args, typename = std::enable_if_t<sizeof...(Args) + 1 == nr_channels_>>
++ constexpr Pixel(Arg1 arg1, Args... args) noexcept;
+
+ constexpr explicit Pixel(const std::array<T, nr_channels>& arr) noexcept;
+@@ -216,8 +216,8 @@
+ template <typename T, std::size_t nr_channels_, PixelFormat pixel_format_>
+-template <typename... Args, typename>
+-constexpr Pixel<T, nr_channels_, pixel_format_>::Pixel(Args... args) noexcept
+- : data_{{static_cast<T>(args)...}}
++template <typename Arg1, typename... Args, typename>
++constexpr Pixel<T, nr_channels_, pixel_format_>::Pixel(Arg1 arg1, Args... args) noexcept
++ : data_{{static_cast<T>(arg1), static_cast<T>(args)...}}
+ {
+ static_assert(std::is_trivial<Pixel<T, nr_channels_, pixel_format_>>::value, "Pixel type is not trivial");
+ static_assert(std::is_standard_layout<Pixel<T, nr_channels_, pixel_format_>>::value,
+ "Pixel type is not standard layout");