cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
template function error
template function error
Feb 12, 2010 at 9:37am UTC
lipun4u
(9)
template <class T>
void Test(T r_t) {}
int main() {
template void Test<int>(int);
return 0;
}
why the above code shows error ??
Feb 12, 2010 at 11:53am UTC
moorecm
(1932)
Call the function with
Test<
int
>(10);
or similar.
Topic archived. No new replies allowed.