mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 20:05:31 +00:00
Fixed build problem with VC++.
This commit is contained in:
parent
c7f0932917
commit
d943c4fade
6
peglib.h
6
peglib.h
@ -1689,8 +1689,9 @@ private:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
g["Primary"] = [&](const SemanticValues& sv, any& dt) {
|
g["Primary"] = [&](const SemanticValues& sv, any& dt) -> std::shared_ptr<Ope> {
|
||||||
Data& data = *dt.get<Data*>();
|
Data& data = *dt.get<Data*>();
|
||||||
|
|
||||||
switch (sv.choice) {
|
switch (sv.choice) {
|
||||||
case 0: { // Reference
|
case 0: { // Reference
|
||||||
auto ignore = (sv.size() == 2);
|
auto ignore = (sv.size() == 2);
|
||||||
@ -1712,8 +1713,7 @@ private:
|
|||||||
return sv[1].get<std::shared_ptr<Ope>>();
|
return sv[1].get<std::shared_ptr<Ope>>();
|
||||||
}
|
}
|
||||||
case 2: { // Anchor
|
case 2: { // Anchor
|
||||||
auto ope = sv[1].get<std::shared_ptr<Ope>>();
|
return anc(sv[1].get<std::shared_ptr<Ope>>());
|
||||||
return anc(ope);
|
|
||||||
}
|
}
|
||||||
case 3: { // Capture
|
case 3: { // Capture
|
||||||
auto name = std::string(sv[0].s, sv[0].n);
|
auto name = std::string(sv[0].s, sv[0].n);
|
||||||
|
Loading…
Reference in New Issue
Block a user