Skip to content

Commit

Permalink
QMetaType: suppress most errors for metatype for references
Browse files Browse the repository at this point in the history
We already print a static_assertion failure, but the compiler continues
expanding the code and produces a lot of "error: forming pointer to
reference type" messages after it.

Change-Id: I5fe61a5240ffac45b727fffd29bc5c1215619540
Reviewed-by: Ivan Solovev <[email protected]>
  • Loading branch information
thiagomacieira committed Nov 12, 2024
1 parent 1e7581f commit 15e8ac1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/corelib/kernel/qmetatype.h
Original file line number Diff line number Diff line change
Expand Up @@ -2539,6 +2539,8 @@ struct QMetaTypeInterfaceWrapper
/*.legacyRegisterOp=*/ QMetaTypeForType<T>::getLegacyRegister()
};
};
template<typename T> struct QMetaTypeInterfaceWrapper<T &> {};


#if !defined(Q_OS_WIN) && defined(Q_CC_CLANG)
# pragma GCC visibility pop
Expand Down

0 comments on commit 15e8ac1

Please sign in to comment.