Use `nullptr` instead of `NULL`; the latter has been depreated in C++11.