Replies: 2 comments
-
|
Yes, I would think that a simple specialisation should work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I halt my attempt before beginning any implementation. At least for the time being. I realized that even empty classes have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Have you considered implementing a zero-length
etl::arrayasstd::arraysupports it?I am looking for a container which behaves like a C-style or
std::arraywhich has no data members (sizeof(...)==0) if the array has no elements. The compiler I use does not support the GCC extension of zero length arraysT array[0].I think the existing
etl::arraycould be modified (using template specialization amongst others) to support this.If you would agree on this feature I could provide a pull request. I expect the changes to be mostly boilerplate code.
Beta Was this translation helpful? Give feedback.
All reactions