diff options
| author | 2020-08-07 07:55:50 -0400 | |
|---|---|---|
| committer | 2020-08-07 08:09:57 -0400 | |
| commit | 8e86fa7e6033d7d65c781eb332d5d750f7ef4e26 (patch) | |
| tree | 8c22b7d574b92de9077dc9c0e1d05fa2947b34b5 /src/core/loader/loader.cpp | |
| parent | Merge pull request #4483 from lioncash/constexpr-hex (diff) | |
| download | yuzu-8e86fa7e6033d7d65c781eb332d5d750f7ef4e26.tar.gz yuzu-8e86fa7e6033d7d65c781eb332d5d750f7ef4e26.tar.xz yuzu-8e86fa7e6033d7d65c781eb332d5d750f7ef4e26.zip | |
common/concepts: Rename IsBaseOf to DerivedFrom
This makes it more inline with its currently unavailable standardized
analogue std::derived_from.
While we're at it, we can also make the template match the requirements
of the standardized variant as well.
Diffstat (limited to 'src/core/loader/loader.cpp')
| -rw-r--r-- | src/core/loader/loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index b8f8f1448..7c48e55e1 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp | |||
| @@ -25,7 +25,7 @@ namespace Loader { | |||
| 25 | 25 | ||
| 26 | namespace { | 26 | namespace { |
| 27 | 27 | ||
| 28 | template <Common::IsBaseOf<AppLoader> T> | 28 | template <Common::DerivedFrom<AppLoader> T> |
| 29 | std::optional<FileType> IdentifyFileLoader(FileSys::VirtualFile file) { | 29 | std::optional<FileType> IdentifyFileLoader(FileSys::VirtualFile file) { |
| 30 | const auto file_type = T::IdentifyType(file); | 30 | const auto file_type = T::IdentifyType(file); |
| 31 | if (file_type != FileType::Error) { | 31 | if (file_type != FileType::Error) { |