Attribute support for C++ classes