Fix clang build for r291198
Older clangs (<=3.6) complain about a redefinition when we try to specialize a templace function declared with = delete. Instead, I just don't define the function body, which will trigger a linker error if someone tries to use an unknown function. llvm-svn: 291226
This commit is contained in:
@@ -1599,7 +1599,7 @@ StructuredData::ArraySP ScriptInterpreterPython::OSPlugin_ThreadsInfo(
|
||||
// as the underlying typedef for uint* types, size_t, off_t and other values
|
||||
// change.
|
||||
|
||||
template <typename T> const char *GetPythonValueFormatString(T t) = delete;
|
||||
template <typename T> const char *GetPythonValueFormatString(T t);
|
||||
template <> const char *GetPythonValueFormatString(char *) { return "s"; }
|
||||
template <> const char *GetPythonValueFormatString(char) { return "b"; }
|
||||
template <> const char *GetPythonValueFormatString(unsigned char) {
|
||||
|
||||
Reference in New Issue
Block a user