In file included from main.cpp:13:0:
initialize_vector.h: In function 'auto initialize_vector(Value, Size, Args ...)':
initialize_vector.h:11:15: error: parameter packs not expanded with '...':
return std::vector<Args>(s, vec);
^~~~~~~~~~~~~~~~~~~~
initialize_vector.h:11:15: note: 'Args'
main.cpp: In function 'int main()':
main.cpp:31:14: error: 'void a' has incomplete type
auto a = initialize_vector<int>(-1, 2, 3);
^
In file included from main.cpp:13:0:
initialize_vector.h: In instantiation of 'auto initialize_vector(Value, Size, Args ...) [with Value = std::__cxx11::basic_string<char>; Size = int; Args = {int, int}]':
main.cpp:37:63: required from here
initialize_vector.h:10:8: error: 'void vec' has incomplete type
auto vec = initialize_vector(n, dims...);
^~~
main.cpp:37:14: error: 'void a' has incomplete type
auto a = initialize_vector<std::string>("aba", 3, 4, 2);
^
main.cpp:52:14: error: 'void a' has incomplete type
auto a = initialize_vector<int>(v, 2, 1);
^
|