libstrat: convert to experimental new (super-accurate) sf allocation semantics
This commit is contained in:
@@ -13,10 +13,9 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "sf_common.hpp"
|
||||
#include "cmif/sf_cmif_pointer_and_size.hpp"
|
||||
#include <stratosphere/sf/sf_common.hpp>
|
||||
#include <stratosphere/sf/cmif/sf_cmif_pointer_and_size.hpp>
|
||||
|
||||
namespace ams::sf {
|
||||
|
||||
@@ -35,8 +34,9 @@ namespace ams::sf {
|
||||
template<typename T>
|
||||
concept OutEnabled = (std::is_trivial<T>::value || IsOutForceEnabled<T>::value) && !std::is_pointer<T>::value;
|
||||
|
||||
template<typename T> requires OutEnabled<T>
|
||||
template<typename T>
|
||||
class Out : public impl::OutBaseTag {
|
||||
static_assert(OutEnabled<T>);
|
||||
public:
|
||||
static constexpr size_t TypeSize = sizeof(T);
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user