IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Didn't you solve this yourself..
..with nested templates?
-drl
New 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.
--

We have only 2 things to worry about: That
things will never get back to normal, and that they already have.
     C++ templates question - (Arkadiy) - (7)
         No takers? - (Arkadiy) - (1)
             It's way over my head. - (Meerkat)
         Scratching head.... - (Simon_Jester) - (3)
             Re: Scratching head.... - (Arkadiy) - (2)
                 Didn't you solve this yourself.. - (deSitter) - (1)
                     no - I smell nested templates but can't quite get it - (Arkadiy)
         Solved! - (Arkadiy)

Your Freak God[tm] is HERE!
102 ms