refs #614, allow CCached::NotifySlot to refer to a base class method

This commit is contained in:
Mathew Sutcliffe
2016-04-24 16:26:58 +01:00
committed by Klaus Basan
parent 43f9515eaa
commit bf2a84b67c
3 changed files with 17 additions and 2 deletions

View File

@@ -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,