I came across some code. Right after the construction, the author casts the pointer into a void type. What is the purpose of this line? Is it like assert( m_some_class_ptr != 0) to check the integrity of the pointer?
Some_class * m_some_class_ptr = new Some_class();
(void)m_some_class_ptr;
Thank you.