[Reproducers] Use partial template specialization instead of overload
Not sure if this is what's causing MSVC to claim the function to be already defined elsewhere, but worth a shot. llvm-svn: 355654
This commit is contained in:
parent
de04a8c150
commit
4aba7bb923
|
@ -37,7 +37,9 @@ void log_append(llvm::raw_string_ostream &ss, const T *t) {
|
|||
ss << t;
|
||||
}
|
||||
|
||||
void log_append(llvm::raw_string_ostream &ss, const char *t) { ss << t; }
|
||||
template <> void log_append<char>(llvm::raw_string_ostream &ss, const char *t) {
|
||||
ss << t;
|
||||
}
|
||||
|
||||
template <typename Head>
|
||||
void log_helper(llvm::raw_string_ostream &ss, const Head &head) {
|
||||
|
|
Loading…
Reference in New Issue