14 May 20:22
[proto v4]compile time equation soln prototype fails to compile with "when" map for "variables"
From: Larry Evans <cppljevans <at> suddenlink.net>
Subject: [proto v4]compile time equation soln prototype fails to compile with "when" map for "variables"
Newsgroups: gmane.comp.parsers.spirit.devel
Date: 2008-05-14 18:23:22 GMT
Subject: [proto v4]compile time equation soln prototype fails to compile with "when" map for "variables"
Newsgroups: gmane.comp.parsers.spirit.devel
Date: 2008-05-14 18:23:22 GMT
In the vault at: http://www.boost-consulting.com/vault/index.php?action=downloadfile&filename=pass_thru_tag_xform.cpp&directory=Strings%20-%20Text%20Processing&PHPSESSID=ab51206c9d980155d142f5bcef8e00ee there's a partial prototype for compile time solving a system of equations. The partial prototype is partial because it just tries to simplify the rhs of the equation. The domain is calculating the empty attributes of a set of grammar productions (i.e. the equations). The typedef ... xfrm_empty_varbl_map0 is supposed to implement a substitution operation which substitutes a literal value for a variable. In this particular case, the variable is empty::tag_varbl<gram::varbl_factor> and the value to be substituted is: empty::tag_literal<empty::literal_not> As indicated in the comments following: //NOTE:varbl_empty_map_bug: it fails to reduce the rhs to a terminal expression of type tag_literal<empty::literal_not> at the valu_empty_not_leaves statement. However, this only happens when the xfrm_empty_varbl_map0 is included as the 1st term in xfrm_reduce_empty_n. Does anybody have any ideas of why that happens?(Continue reading)
RSS Feed