Portable C++ block