Update adapter.h

exception safety comment