C++ Logo

STD-DISCUSSION

Advanced search

Subject: Difference between alias and non alias template when binding to template template arguments
From: Omer Rosler (omer.rosler_at_[hidden])
Date: 2021-03-21 15:24:05


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?



STD-DISCUSSION list run by std-discussion-owner@lists.isocpp.org

Older Archives on Google Groups