mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
refs #614, allow CCached::NotifySlot to refer to a base class method
This commit is contained in:
committed by
Klaus Basan
parent
43f9515eaa
commit
bf2a84b67c
@@ -27,6 +27,21 @@ namespace BlackMisc
|
||||
namespace Private
|
||||
{
|
||||
|
||||
/*!
|
||||
* \private Identity type trait.
|
||||
*/
|
||||
template <typename T>
|
||||
struct Identity
|
||||
{
|
||||
using type = T;
|
||||
};
|
||||
|
||||
/*!
|
||||
* \private Trick to force a non-deduced context during template argument type deduction.
|
||||
*/
|
||||
template <typename T>
|
||||
using NonDeduced = typename Identity<T>::type;
|
||||
|
||||
/*!
|
||||
* \private QObject subclass used by CCached<T> class template for signal/slot communication with CValueCache.
|
||||
* An instance of this class is shared between all CCached<T> referring to the same CValueCache and owned by the same QObject,
|
||||
|
||||
Reference in New Issue
Block a user