mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
Fix SFINAE in JSON.h constructor.
Summary: This used std::enable_if without referencing ::type. Changed to use std::enable_if_t. Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74381
This commit is contained in:
parent
bdaeac1b30
commit
90f6d0dfcd
@ -354,7 +354,7 @@ public:
|
||||
}
|
||||
// Serializable types: with a toJSON(const T&)->Value function, found by ADL.
|
||||
template <typename T,
|
||||
typename = typename std::enable_if<std::is_same<
|
||||
typename = std::enable_if_t<std::is_same<
|
||||
Value, decltype(toJSON(*(const T *)nullptr))>::value>,
|
||||
Value * = nullptr>
|
||||
Value(const T &V) : Value(toJSON(V)) {}
|
||||
|
Loading…
Reference in New Issue
Block a user