
28 Feb
2006
28 Feb
'06
10:40 a.m.
Since I discovered add_const< add_ref< T > > produces a different type to add_ref< add_const< T > > on this compiler, I have a defensive coding practice of preferring const T over T const. The former should always produce a valid C++ type, the latter is strange with references.
Just in case you hadn't realised: add_const< add_ref< T > > and add_ref< add_const< T > > *should* produce different results :-) John.