mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1243876 - fix ConvertibleTester to not cause incomplete type errors with UniquePtr and Skia. r=nfroyd
This commit is contained in:
parent
879feeb230
commit
41c61715b2
@ -679,18 +679,15 @@ struct IsBaseOf
|
||||
|
||||
namespace detail {
|
||||
|
||||
// This belongs inside ConvertibleTester, but it's pulled out to
|
||||
// work around a bug in the compiler used for hazard builds.
|
||||
template <typename To>
|
||||
static void ConvertibleTestHelper(To);
|
||||
|
||||
template<typename From, typename To>
|
||||
struct ConvertibleTester
|
||||
{
|
||||
private:
|
||||
template<typename From1, typename To1,
|
||||
typename = decltype(ConvertibleTestHelper<To1>(DeclVal<From>()))>
|
||||
static char test(int);
|
||||
template<typename To1>
|
||||
static char test_helper(To1);
|
||||
|
||||
template<typename From1, typename To1>
|
||||
static decltype(test_helper<To1>(DeclVal<From1>())) test(int);
|
||||
|
||||
template<typename From1, typename To1>
|
||||
static int test(...);
|
||||
|
Loading…
Reference in New Issue
Block a user