Thanks sugarfree,
Yes, you understood correctly my intentions
It might be overcomplicated, it is not the problem I'm trying to solve, this is more my curiosity
If it is not the way to use it -...
Type: Posts; User: borat
Thanks sugarfree,
Yes, you understood correctly my intentions
It might be overcomplicated, it is not the problem I'm trying to solve, this is more my curiosity
If it is not the way to use it -...
I started to do some reading about template, found interesting example
template <class T1, class T2>
bool GetItUP (T1 a, T2 b)
{
return (a>b?a:b);
}
And the way to use it:
Thanks Cyberfish,
All noted
#include "stdafx.h"
#include "vector"
#include "list"
#include "map"
#include "fstream"
using namespace std;
void ReadFile_FillStruct_1(string _fileName, vector<string>& _vectorStorage,...
Extra argment used in validation
Sorry, no code now
Guys,
Just would like to point out one thing that all ‘func’ could have different numbers of arguments and ‘storage’ argument is different type
Cyberfish & Salquest, thanks for your replay
that is corect - only validation is different.
I'll look at both suggestions, by any chance do you have link where I could look at the 'way' you...
Let’s say you have few functions:
func_1(arg1, arg2, arg3) ,
func_2 (arg1, arg2) and
func_3 (arg1, arg2, arg3).
All 3 performing similar steps:
func (arg1, arg2, arg3)
{...