[C++] Remove protect / unprotect