When clang adds argument dependent lookup candidates, it can perform template instantiation. For example, it can instantiate a templated friend function and register it in the enclosing namespace's lookup table. Fixes https://llvm.org/bugs/show_bug.cgi?id=24954 Reviewed by Richard Smith. llvm-svn: 263634
11 lines
151 B
C++
11 lines
151 B
C++
#include "B.h"
|
|
|
|
template <class T>
|
|
class Expr {
|
|
public:
|
|
void print(B::basic_ostream<char>& os) {
|
|
os << B::setw(42);
|
|
os << B::endl;
|
|
}
|
|
};
|