Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Non type template argument
//clang 3.8.0 #include <iostream> using namespace std; template<class T,int S> T func(T a){ return a*S; } int main() { cout<<func<int,2>(20)<<endl; cout<<func<int,3>(30); }
run
|
edit
|
history
|
help
0
C++ Register
SubsequenceArray
regimeketopdf
for_each_argument
mine
back_inserter example
C++ does not have reference-to-reference types
Dat pointers
template specialization inheritance problem
<string> No indirect include of <errno.h>