Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ciclic dependency problem
//Resulting file after pre-processing ----
int get_total(std::vector<int> &v);
struct int_vector {
//implementation details ...
int size() { return _size; }
int operator[](int pos) {
return _data[pos];
int *_data;
int get_total(std::vector<int> &v) {
return std::accumulate(begin(v), end(v));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.