no - I smell nested templates but can't quite get it
Could solve it with a macro hack:
\n\n#define ANCHOR_POSITION(Class, Field) ( (int)(((Class*)(NULL))->Field) )\n\ntemplate <class Element, int anchorPosition>\nclass AnchoredList\n{\n\n Element *element(DoubleListAnchor *anchor) {\n return (Element*)( ((char *)anchor) - anchorPosition );}\n }\n};\n\n
The template version would be a hack anyway, but I am just curious.