15 Jul
2008
15 Jul
'08
7:39 a.m.
Wong, Shin Guey a écrit :
I had read the C-Template-Metaprogramming-Concepts-Tools-and-Techniques-from-Boost-and-Beyond-C-in-Depth-Series which tell me how to archive that using template. But what I really want is to done it with the preprocessor without using any template which will not affect the run time but only the compile time.
You are aware that tempalte meta-programming WILL result in compile-time expansion fo the resulting constant do you ? Why did you reject this solution ?