For example:
template CustomTuple(TList...)
{
deprecated {
alias TList CustomTuple;
}
}
alias CustomTuple!(int, 1) MyTuple; // Should show deprecation warning
There does exist a fairly simple work-around luckily:
template CustomTuple(TList...)
{
deprecated {
alias TList Temp;
}
alias Temp CustomTuple;
}
alias CustomTuple!(int, 1) MyTuple; // Correctly shows deprecation warning
Comment #1 by andrej.mitrovich — 2013-05-27T02:50:46Z
Related or dupe of Issue 9876.
Comment #2 by robert.schadek — 2024-12-13T18:07:07Z