[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
glr2.cc: beware of types with angle brackets
From: |
Akim Demaille |
Subject: |
glr2.cc: beware of types with angle brackets |
Date: |
Sun, 24 Jan 2021 09:53:42 +0100 |
commit f6e890b5306fb7f44a3e913a4504d504c0ea6acf
Author: Akim Demaille <akim.demaille@gmail.com>
Date: Sun Jan 24 09:37:35 2021 +0100
glr2.cc: beware of types with angle brackets
For C++98, avoid "yyval.as<std::list<int>>".
* data/skeletons/glr2.cc (b4_call_merger): Add spaces within "<...>".
diff --git a/data/skeletons/glr2.cc b/data/skeletons/glr2.cc
index a674617f6..10956c9e8 100644
--- a/data/skeletons/glr2.cc
+++ b/data/skeletons/glr2.cc
@@ -143,7 +143,7 @@ b4_dollar_popdef[]dnl
m4_define([b4_call_merger],
[b4_case([$1],
[ b4_symbol_if([$3], [has_type],
- [b4_variant_if([yy0.as<b4_symbol($3, type)> () = $2
(yy0.as<b4_symbol($3, type)>(), yy1.as<b4_symbol($3, type)>());],
+ [b4_variant_if([yy0.as< b4_symbol($3, type) > () =
$2 (yy0.as< b4_symbol($3, type) >(), yy1.as< b4_symbol($3, type) >());],
[yy0.b4_symbol($3, slot) = $2 (yy0,
yy1);])],
[yy0 = $2 (yy0, yy1);])])])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- glr2.cc: beware of types with angle brackets,
Akim Demaille <=