You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During these last 10 years, work has been done to standardize the code.
These efforts are now at a point where because of this standarization there is duplicated code:
In particular for this issue:
is code that is very similar (aka standardized).
Imagine:
Instead of defining Column_info_t info[3]; ...etc within the function, is passed as parameter
Then visualize the rest of the code:
the algorithm is the same, things that change is the fetch function that that is called.
More of the imagination:
Instead of defining the fetch function, it is passed as parameter
During these last 10 years, work has been done to standardize the code.
These efforts are now at a point where because of this standarization there is duplicated code:
In particular for this issue:
is code that is very similar (aka standardized).
Imagine:
Instead of defining
Column_info_t info[3]; ...etc
within the function, is passed as parameterThen visualize the rest of the code:
the algorithm is the same, things that change is the fetch function that that is called.
More of the imagination:
Instead of defining the fetch function, it is passed as parameter
The result is a C++ template:
A call to the function would look like: (after filling up info variable)
This will:
There might be some more places where template can be used, but is not related with this particular issue
The text was updated successfully, but these errors were encountered: