Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Demolishun I have realized why this doesn't work. vector takes only one argument. I'm trying to create a vector that stores data structures based on the variadic template arguments.
-
@Demolishun So for example if I create this class with template args <int, float> then this vector will store a data structure with an int and a float field. I dunno how to wrap the variadic types in a container type.
-
@SparkyTD Can a templatized struct be created with a variadic? Then you could feed the struct template to that vector. I have not worked with variadics yet.
-
@Demolishun Yeah I don't want to post it there because it might get flagged as duplicate. But I also don't know that to search for.
-
@Demolishun Oh that's not a problem since I don't want to modify the data once it's there.
-
@SparkyTD I just did "variadic struct c++" and found this, there are more there too:
https://stackoverflow.com/questions... -
@Emphiliis That’s the point, it is not s stacktrace. The whole error basically tells you, that you are trying to put incompatible types together for maybe 1 field.
Is it too many or too few then? Make up your goddamn mind! (the two errors are coming from the same line).
random