gpio: implement more of server library for boot sysmodule client usage

This commit is contained in:
Michael Scire
2020-10-31 03:22:01 -07:00
parent e1dccef7d1
commit 5bc4abb92f
26 changed files with 1162 additions and 24 deletions

View File

@@ -59,7 +59,7 @@ namespace ams::ddsf {
template<typename T>
constexpr const T &SafeCastTo() const {
this->AssertCastableTo<T>();
return static_cast<T &>(*this);
return static_cast<const T &>(*this);
}
template<typename T>
@@ -71,7 +71,7 @@ namespace ams::ddsf {
template<typename T>
constexpr const T *SafeCastToPointer() const {
this->AssertCastableTo<T>();
return static_cast<T *>(this);
return static_cast<const T *>(this);
}
#if defined(AMS_BUILD_FOR_AUDITING) || defined(AMS_BUILD_FOR_DEBUGGING)