mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
Common: Fix IsTriviallyCopyable macro for GCC 5
Based on quarthex's patch in PR #2440
This commit is contained in:
parent
8944e07f84
commit
ebad10f2a1
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
||||||
#include "Common/Flag.h"
|
#include "Common/Flag.h"
|
||||||
|
|
||||||
// ewww
|
// ewww
|
||||||
#if _LIBCPP_VERSION
|
#if _LIBCPP_VERSION || __GNUC__ >= 5
|
||||||
#define IsTriviallyCopyable(T) std::is_trivially_copyable<typename std::remove_volatile<T>::type>::value
|
#define IsTriviallyCopyable(T) std::is_trivially_copyable<typename std::remove_volatile<T>::type>::value
|
||||||
#elif __GNUC__
|
#elif __GNUC__
|
||||||
#define IsTriviallyCopyable(T) std::has_trivial_copy_constructor<T>::value
|
#define IsTriviallyCopyable(T) std::has_trivial_copy_constructor<T>::value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue