How to create a vector with a non-copyable struct? #822
-
I'm trying to create the following vector of structs (with copy constructor deleted) in place and I cannot compile it. I'd like to understand why and what are the alternatives.
Is it because etl::vector doesn't implement a std:initializer_list? Or because the structs are rvalues? Or some other reason? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
The ETL does support |
Beta Was this translation helpful? Give feedback.
-
This code doesn't work with
|
Beta Was this translation helpful? Give feedback.
-
This works.
|
Beta Was this translation helpful? Give feedback.
-
From Stackoverflow:-
|
Beta Was this translation helpful? Give feedback.
-
Thank your for all your replies @jwellbelove, they're very helpful in understand this. |
Beta Was this translation helpful? Give feedback.
This works.