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

constexpr all the things #39

Open
mpusz opened this issue Mar 25, 2020 · 1 comment
Open

constexpr all the things #39

mpusz opened this issue Mar 25, 2020 · 1 comment

Comments

@mpusz
Copy link

mpusz commented Mar 25, 2020

LA operators are not constexpr for statically known bounds (literal types). The following code fails to compile:

template<Unit U = si::metre>
using v_length = fs_vector<si::length<U>, 3>;

static_assert(v_length<>{ 1q_m, 2q_m, 3q_m } + v_length<>{ 3q_m, 2q_m, 1q_m } == v_length<>{ 4q_m, 4q_m, 4q_m });
@BobSteagall
Copy link
Owner

done for r7z

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