From 01d58dee278371f1ad64302186d2b4798be93742 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 17 Jul 2021 17:12:18 +0100 Subject: [PATCH] Use concepts for Backing::Read over enable_if --- app/src/main/cpp/skyline/vfs/backing.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/vfs/backing.h b/app/src/main/cpp/skyline/vfs/backing.h index 123f2c44..490bd05f 100644 --- a/app/src/main/cpp/skyline/vfs/backing.h +++ b/app/src/main/cpp/skyline/vfs/backing.h @@ -3,6 +3,7 @@ #pragma once +#include #include namespace skyline::vfs { @@ -82,7 +83,7 @@ namespace skyline::vfs { /** * @brief Implicit casting for reading into spans of different types */ - template, bool>::type = true> + template requires (!std::same_as) size_t Read(span output, size_t offset = 0) { return Read(output.template cast(), offset); }