mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
refs #413 All value classes which had custom policies shall inherit from mixins instead.
This commit is contained in:
@@ -74,18 +74,12 @@ namespace BlackMisc
|
||||
struct AssociativityTraits : public Private::AssociativityTraits<Private::ADL::SupportsQHash<Key>::value, Private::ADL::SupportsQMap<Key>::value>
|
||||
{};
|
||||
|
||||
// forward declaration
|
||||
template<class Key, class Value, template <class...> class Impl = AssociativityTraits<Key>::template DefaultType>
|
||||
class CDictionary;
|
||||
|
||||
//! \private
|
||||
template <class Key, class Value, template <class...> class Impl>
|
||||
struct CValueObjectPolicy<CDictionary<Key, Value, Impl>> : public CValueObjectLegacy
|
||||
{};
|
||||
|
||||
//! Associative container with value semantics, chooses a sensible default implementation container type
|
||||
template<class Key, class Value, template <class...> class Impl /*= AssociativityTraits<Key>::template DefaultType*/>
|
||||
class CDictionary : public CValueObject<CDictionary<Key, Value, Impl>>
|
||||
template<class Key, class Value, template <class...> class Impl = AssociativityTraits<Key>::template DefaultType>
|
||||
class CDictionary :
|
||||
public Mixin::DBusOperators<CDictionary<Key, Value, Impl>>,
|
||||
public Mixin::JsonOperators<CDictionary<Key, Value, Impl>>,
|
||||
public Mixin::String<CDictionary<Key, Value, Impl>>
|
||||
{
|
||||
//! \copydoc BlackMisc::CValueObject::compare
|
||||
friend int compare(const CDictionary &a, const CDictionary &b)
|
||||
|
||||
Reference in New Issue
Block a user