diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-05-16 03:40:24 +0300 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-05-16 19:34:07 +0200 |
commit | af1926e8fe3627880290baad4e45335a5c627620 (patch) | |
tree | f5f1b5ae60fea9b7e7444c0d1a06e52410839e50 /src/adlmidi_bankmap.h | |
parent | f7e659977e033f491f00d7e8720c8a4acfc62daf (diff) | |
download | libADLMIDI-af1926e8fe3627880290baad4e45335a5c627620.tar.gz libADLMIDI-af1926e8fe3627880290baad4e45335a5c627620.tar.bz2 libADLMIDI-af1926e8fe3627880290baad4e45335a5c627620.zip |
BankMap: Added better friendly template declarison
Diffstat (limited to 'src/adlmidi_bankmap.h')
-rw-r--r-- | src/adlmidi_bankmap.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/adlmidi_bankmap.h b/src/adlmidi_bankmap.h index 881b9b5..123c8e1 100644 --- a/src/adlmidi_bankmap.h +++ b/src/adlmidi_bankmap.h @@ -29,6 +29,8 @@ #include <utility> #include <cstdint> +#include "adlmidi_ptr.hpp" + /** * A simple hash map which accepts bank numbers as keys, can be reserved to a * fixed size, offers O(1) search and insertion, has a hash function to @@ -87,7 +89,12 @@ public: Slot **buckets = nullptr, *slot = nullptr; size_t index = 0; iterator(Slot **buckets, Slot *slot, size_t index); - friend BasicBankMap; +#ifdef _MSC_VER + template<class _T> + friend class BasicBankMap; + #else + friend class BasicBankMap<T>; +#endif }; private: |