Hi,<div><br></div><div>For the first time I built llvm + clang on ubuntu box for giving it a try. </div><div><br></div><div>I have this simple template function in a header file</div><div><br></div><div><div>template <typename T, typename U></div>
<div>inline void SetMin(T &aVar,U aValue);</div></div><div><br></div><div>but clang++ returns</div><div><br></div><div><div>../src/myfile.h:13:1: error: unknown type name 'template'</div><div>template <typename T, typename U></div>
<div>^</div><div>../src/myfile.h:13:10: error: expected identifier or '('</div><div>template <typename T, typename U></div></div><div><br></div><div>I tried to use also -std=gnu89 because I've read gcc (which compiles my code) uses that standard by default, but with no success.</div>
<div><br></div><div>I am using:</div><div><br></div><div><div>clang version 2.9 (trunk 118246)</div><div>Target: x86_64-unknown-linux-gnu</div><div>Thread model: posix</div></div><div><br></div><div>Thanks</div><div>Stefano</div>
<div><br></div><div><br></div>