struct account {
...
};
struct sharedmemory {
vector<account> accounts;
};
this gives an error for some reason 🙁
main.cpp: In function 'int main(int, char**)':
main.cpp:40: error: 'main(int, char**)::account' uses local type 'main(int, char**)::account'
main.cpp:40: error: trying to instantiate 'template<class _Alloc> class std::allocator'
main.cpp:40: error: template argument 2 is invalid
...
};
struct sharedmemory {
vector<account> accounts;
};
this gives an error for some reason 🙁
main.cpp: In function 'int main(int, char**)':
main.cpp:40: error: 'main(int, char**)::account' uses local type 'main(int, char**)::account'
main.cpp:40: error: trying to instantiate 'template<class _Alloc> class std::allocator'
main.cpp:40: error: template argument 2 is invalid