make functions legal C++.