
24 Sep
2010
24 Sep
'10
2:18 p.m.
On 09/24/2010 02:33 PM, Roland Bock wrote:
Hi,
ist there a way to access the grammar that was used to construct an expression?
I have defined a metafunction
template
struct grammar_less: mpl::false_ {}; which has specialization for some grammar combinations.
Now I want to define a function that can take two arguments so that
child0.grammar < child1.grammar
Any idea how to do that? My test-code is attached.
Regards,
Roland
Hi, since I know the structure of the types in question, I can circumvent the problem as shown in the attached code. Not nice, but I could probably use it. Regards, Roland