-
Notifications
You must be signed in to change notification settings - Fork 9
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
Example code in README.md does not compile with C++17 #9
Comments
Also, I would like to use a spherical coordinate in my class instances as a member variable, but including the following line in my class
results in
|
Hello @jussihi Thanks for your report, I'll have a look into it |
@zmij , I got the However, conversions still fail. Maybe some header needs to be included for them as well? |
Сonversion is in |
Thanks for the tip @zmij . However, with this little sample:
I still get the compiler error
I guess it's still missing something..? |
The convert function has two template parameters auto v3 = convert<psst::math::vector<double, 3>>(a); |
Ah, stupid me. This fixes it - you can close this issue if you want to. Thanks for the support! |
Actually, the conversion still fails:
results to
|
Ah, the right header to include was |
In readme, it reads;
However, this does not compile on C++17, at least on GCC 12.2.0.
Did I understand something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: