T
Thomas
Hello,
I 'm writitng a simple program which contains the following template
template <class T> int exch(T& t1 ,T& t2){
T tmp ;
tmp = t1;
t1 = t2;
t2 = tmp;
return 1;
}
When i run this for the elements of such table :
char* imiona [] = {"anastazja", "maja", "gucio", "aleksander",
"klementyna"};
from another function the program crushes. For other types templates runs
fine. What should I do ?, thx
I 'm writitng a simple program which contains the following template
template <class T> int exch(T& t1 ,T& t2){
T tmp ;
tmp = t1;
t1 = t2;
t2 = tmp;
return 1;
}
When i run this for the elements of such table :
char* imiona [] = {"anastazja", "maja", "gucio", "aleksander",
"klementyna"};
from another function the program crushes. For other types templates runs
fine. What should I do ?, thx