mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
git-subtree-dir: externals/mp git-subtree-split: 29cb5588da3a18ed571a0e41622900a01b9f01eb
17 lines
329 B
C++
17 lines
329 B
C++
/* This file is part of the mp project.
|
|
* Copyright (c) 2017 MerryMage
|
|
* SPDX-License-Identifier: 0BSD
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <type_traits>
|
|
|
|
namespace mp {
|
|
|
|
/// Casts a metavalue from one type to another
|
|
template<class T, class V>
|
|
using value_cast = std::integral_constant<T, static_cast<T>(V::value)>;
|
|
|
|
} // namespace mp
|