66fa4a0b54
Merge commit '7b0c47d3f0c20eeeceb0324771eb86ab80b0bd86' as 'externals/mp'
16 lines
329 B
C++
16 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
|