mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 18:15:46 -04:00
libretro: Re-enable hw context switch, add auto option
This commit is contained in:
12
src/common/make_array.h
Normal file
12
src/common/make_array.h
Normal file
@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#include <array>
|
||||
#include <type_traits>
|
||||
|
||||
// Source: https://gist.github.com/klmr/2775736#file-make_array-hpp
|
||||
|
||||
template<typename... T>
|
||||
constexpr auto make_array(T&&... values)
|
||||
-> std::array<typename std::decay<typename std::common_type<T...>::type>::type, sizeof...(T)>
|
||||
{
|
||||
return {std::forward<T>(values)...};
|
||||
}
|
Reference in New Issue
Block a user