[cfe-dev] Adding New Data Type
John McCall
rjmccall at apple.com
Sun Nov 6 16:00:03 PST 2011
On Nov 6, 2011, at 3:22 PM, Bill Walters wrote:
> I would like to add a heterogeneous tuple-like data structure for C++ that is
> added to the built in types for clang.
>
> So for example, the statement: CustomType<int, float, long> typeName;
>
> ...would create a class defined in place of that statement with the same
> name given to it, such as:
>
> class typeName
> {
> public:
> Method1 () {...};
> Method2 () {...};
> int v1;
> float v2;
> long v3;
> };
>
> What is the best way to tackle the addition of this type to clang?
#include <tuple> ?
John.
More information about the cfe-dev
mailing list