summaryrefslogtreecommitdiff
path: root/src/vector.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-05-26 07:59:18 +0100
committerMaxime Coste <mawww@kakoune.org>2017-05-26 07:59:18 +0100
commit6e389512f548d3efdb4f25407fb51e0cbbdc8051 (patch)
treeaba75712ba2f8a7c8832113778f341066cf0bdb9 /src/vector.hh
parentca38e103148807c3a4b18f1e0bc36732553fcbd8 (diff)
Modernize the way we compute memory domains from type
Use a constexpr function instead of a template type
Diffstat (limited to 'src/vector.hh')
-rw-r--r--src/vector.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vector.hh b/src/vector.hh
index c8cc9d08..e149998d 100644
--- a/src/vector.hh
+++ b/src/vector.hh
@@ -8,7 +8,7 @@
namespace Kakoune
{
-template<typename T, MemoryDomain domain = TypeDomain<T>::domain()>
+template<typename T, MemoryDomain domain = memory_domain(Meta::Type<T>{})>
using Vector = std::vector<T, Allocator<T, domain>>;
}