summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2021-03-13 16:26:21 +0100
committerTor Egge <Tor.Egge@broadpark.no>2021-03-13 16:26:35 +0100
commita5e251648b8ec790de39547028d5d5639aa43c8c (patch)
tree1c6ed53c0975967fddc3cfbc5ede05df6cbdb1c5
parent296a834c46c4b06f661e96583853dbb5daaf7a1b (diff)
Use typename keyword.
-rw-r--r--eval/src/vespa/eval/eval/cell_type.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval/src/vespa/eval/eval/cell_type.cpp b/eval/src/vespa/eval/eval/cell_type.cpp
index ff720863cd5..753d888c24c 100644
--- a/eval/src/vespa/eval/eval/cell_type.cpp
+++ b/eval/src/vespa/eval/eval/cell_type.cpp
@@ -15,7 +15,7 @@ CellTypeUtils::alignment(CellType cell_type)
{
return TypifyCellType::resolve(cell_type, [](auto t)->uint32_t
{
- using T = decltype(t)::type;
+ using T = typename decltype(t)::type;
return alignof(T);
});
}
@@ -25,7 +25,7 @@ CellTypeUtils::mem_size(CellType cell_type, size_t sz)
{
return TypifyCellType::resolve(cell_type, [sz](auto t)->size_t
{
- using T = decltype(t)::type;
+ using T = typename decltype(t)::type;
return (sz * sizeof(T));
});
}