Skip to content

Commit 66e8130

Browse files
authored
Minor fixes to the D/C++ Template Comparison page.
1 parent 44149f0 commit 66e8130

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/template-comparison.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ template<class T> void foo(T i)
249249
template<class T, int maxLength> class HashTable {
250250
// $(ERROR cannot use 'if' outside of a function)
251251
if constexpr (maxLength < 0xFFFE)
252-
alias CellIdx = ushort;
252+
using CellIdx = ushort;
253253
else
254-
alias CellIdx = uint;
254+
using CellIdx = uint;
255255
CellIdx index;
256256
};
257257
)
@@ -952,4 +952,4 @@ Macros:
952952
META_KEYWORDS=D Programming Language, template metaprogramming,
953953
variadic templates, type deduction, dependent base class
954954
META_DESCRIPTION=Comparison of templates between the
955-
D programming language, C++98, C++11, and C++20
955+
D programming language and C++

0 commit comments

Comments
 (0)