Вы можете использовать get_ptr()
метод:
// Returns a pointer to the value if this is initialized, otherwise,
// returns NULL.
// No-throw
pointer_const_type get_ptr() const { return m_initialized ? get_ptr_impl() : 0 ; }
pointer_type get_ptr() { return m_initialized ? get_ptr_impl() : 0 ; }
, тогда ваш вызов уменьшается до:
processFrame(frame.get_ptr());
Демо