C++ Logo

std-discussion

Advanced search

Difference between alias and non alias template when binding to template template arguments

From: Omer Rosler <omer.rosler_at_[hidden]>
Date: Sun, 21 Mar 2021 22:24:05 +0200
gcc accepts this snippet, while clang and MSVC reject it.

https://godbolt.org/z/cfzaK3

My questions:

1. Which compiler is correct?

2. Morally, is this difference in behaviour between regular and alias
templates intended?

Received on 2021-03-21 15:24:19