Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GCC 接受这一点,但 Clang 拒绝将其作为重新定义:
template< typename > void s() = delete; template<> void s< int >() {}
谁是对的?
这是一个Clang 错误 ,也是CWG DR 941,已被 C++11 采用。Clang 不合格。