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

use 'template' keyword to treat 'as' as a dependent in clang++ 15 #73

Open
steven918 opened this issue Dec 10, 2024 · 2 comments
Open

Comments

@steven918
Copy link

Hi,

I'm trying to build ramulator 2.0 with clang++ 15. There are numerous errors on ../src/base/base.h:17, where the error says:

error: use 'template' keyword to treat 'as' as a dependent template name:
return _config[_name].as{};

Should the 'template' keyword be put in front of "T", like this:
return _config[_name].as();

Thanks

@FrancescoValente
Copy link

Hi, I had the same issue. Applying the change proposed here #44 solved the issue for me.

@steven918
Copy link
Author

cool, thanks @FrancescoValente, that solved my issue as well. Thanks a lot

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

No branches or pull requests

2 participants