Explicitly specializes in removing the main template.

GCC accepts this, but Klang rejects it as an override:

template< typename >
void s() = delete;

template<>
void s< int >() {}

Who is right?

+4
source share
1 answer

This is a Clang bug , as well as CWG DR 941 , which has already been adopted by C ++ 11. The clan is inappropriate.

+4
source

Source: https://habr.com/ru/post/1531493/


All Articles