Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not_eq is a c++ keyword #1080

Closed
ygorelik opened this issue Jan 31, 2023 · 1 comment
Closed

not_eq is a c++ keyword #1080

ygorelik opened this issue Jan 31, 2023 · 1 comment
Assignees

Comments

@ygorelik
Copy link
Collaborator

ygorelik commented Jan 31, 2023

Opened originally by ericjmonson here.

Expected Behavior

It's expected to create and compile the Cisco IOS XE yang models for C++.

Current Behavior

Yang models can't be compiled if it includes "Cisco-IOS-XE-policy.yang" since it contains an enum called "not-eq" (which is converted to not_eq ... which causes compile time issues).

not_eq is apparently a keyword in C++

Steps to Reproduce

Compile the Cisco IOS XE 17.3.5 YANG models.

Logs

ydk-gen/gen-api/cpp/cisco_ios_xe_1735-bundle/ydk/models/cisco_ios_xe_1735/fragmented/Cisco_IOS_XE_native_133.hpp:4198:39: error: expected unqualified-id before ‘not_eq’ token
         static const ydk::Enum::YLeaf not_eq;

System Information

ydkgen - 0.8.6
CentOS 7.9 - x86_64

ygorelik pushed a commit to ygorelik/ydk-gen that referenced this issue Jan 31, 2023
@ygorelik ygorelik self-assigned this Jan 31, 2023
@ygorelik
Copy link
Collaborator Author

Resolved to 0.8.6.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant