Template function in define
Posted
by Ockonal
on Stack Overflow
See other posts from Stack Overflow
or by Ockonal
Published on 2010-05-27T20:33:22Z
Indexed on
2010/05/27
20:41 UTC
Read the original article
Hit count: 160
Hello, I have some template function and I want to call it using define in c++:
#define CONFIG(key, type, def) getValue<type>(key, def);
Of course, it won't work. Could I make something like this?
© Stack Overflow or respective owner