7 Apr
2009
7 Apr
'09
2:17 p.m.
actually, specialization and not overload should be correct. But idea
remains the same.
On Tue, Apr 7, 2009 at 4:13 PM, Ovanes Markarian
Just a question on your discussion. Why not to let mpl::if choose an appropriate overload, like:
//... somewher in c
private: inline void functionality_impl()const/or non const { //make impl here }
inline void f() { f
::type>(); } template<class T> void f();
void f<ScopedCriticalSection>() { scs(cs); functionality_impl(); }
void f
() { functionlity_impl(); } Greetings, Ovanes