Hi,
I always used this macro to remove warning when needed :
#define UNUSED(x) static_cast<void>(x) But I recently see, a template version could be used like that :
template<class T> INLINE void UNUSED(const T&){} What is the best to use and why ? I read Intel compiler didn't like static_cast to remove warning, but apparently now it does from other post.
Thanks