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

constant_array::data is not constexpr #11

Closed
yfeldblum opened this issue Aug 2, 2016 · 0 comments
Closed

constant_array::data is not constexpr #11

yfeldblum opened this issue Aug 2, 2016 · 0 comments

Comments

@yfeldblum
Copy link
Contributor

constant_array::data is not constexpr

fatal/container/constant_array.h:45:54: note: non-constexpr function 'data' cannot be used in a constant expression
  static constexpr value_type const *data() { return get.data(); }
                                                     ^
fatal/type/deprecated/constant_sequence.h:658:50: note: in call to 'data()'
  static constexpr type const *z_data() { return z_array<Suffix...>::data(); }
                                                 ^

Tools: clang-v3.9.0.

Seeing this error when making a library that iterates over the types generated by Thrift static reflection.

@juchem juchem closed this as completed in c18f82d Aug 2, 2016
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

1 participant