-
Notifications
You must be signed in to change notification settings - Fork 98
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
error C3779: 'AIToolbox::IndexMapIterator<IdsIterator,Container>::operator *': a function that returns 'auto' cannot be used before it is defined #62
Comments
This seems strange. Is there any more context to this error? |
Build started... |
What compiler version are you using? |
It is Visual Studio 2019 (v142). |
Which version of 2019? I'm trying to reproduce the error but I haven't been able to yet. |
Ah, I think I was just able to. VS19.29 16.11 enabled C++20, and gives your error with the code: https://godbolt.org/z/o8x6d56sT However, this disappears with the latest version of Visual Studio 19: https://godbolt.org/z/8KsE97dGP Updating Visual Studio as much as possible is probably the only real way to fix this problem. VS was always a bit slow in fully supporting template features, so it's always good to keep it as up to date as possible. |
Thank you for your help. The version I used is Microsoft Visual Studio Community 2019 Version 16.11.17 |
With the latest version of VS, there are still some errors. The first error occurs as below: |
I run the code again in administrator privilege, however, the error is still there. Is it because I used the Windows system? |
To be honest I don't have much experience on Windows, so I can't really help you. Googling is more likely to help in finding a solution. If you find out that the solution turns out to be something I have to change in the project, I'll gladly do so. Until then I can't really do much, sorry. |
When the .sln is built, there would be error C3779, e.g., 'AIToolbox::IndexMapIterator<IdsIterator,Container>::operator *': a function that returns 'auto' cannot be used before it is defined. Is there any method to solve it?
The text was updated successfully, but these errors were encountered: