-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
In template: constexpr variable 'kFirst' must be initialized by a constant expression #224
Comments
Hi @engun , thanks for reporting this. |
I just tried it. It's still the same. maybe more detailed information would help. begin---------------------------------------------------------------------------------------------------------- In template: constexpr variable 'kFirst' must be initialized by a constant expression
:4387:39: Declaration location: phmap.h namespace phmap::priv
public:
template<K = key_type, P = Policy, K * = nullptr>
MappedReference<P> parallel_hash_map::operator[](key_arg<K> &&key) end---------------------------------------------------------------------------------------------------------- |
What compiler are you using within CLion, on what operating system? |
|
Hum, weird, I cannot reproduce the issue with Visual Studio 2022. |
Yes, VS doesn't show this error and, in fact, doesn't affect CLION compilation, but my OCD tells me to raise an issue. |
This is a great open-source project. I encountered a little problem while using it.
The compilation tool is CLion, and I'm using C++17.
The compiler is showing an annoying error message:
"In template: constexpr variable 'kFirst' must be initialized by a constant expression."
The text was updated successfully, but these errors were encountered: