Re-add const for C++ compatibility.