I have at my_class.h some templates .
template <class TT>
void W_stream::put (TT &value) {
int a=1;
}
template <class TT>
void W_stream::put (TT &value) {
int a=1;
}
To copy to clipboard, switch view to plain text mode
Ok, I build the prog, run the program and a=1;
I re-write :
template <class TT>
void W_stream::put (TT &value) {
int a=0;
}
template <class TT>
void W_stream::put (TT &value) {
int a=0;
}
To copy to clipboard, switch view to plain text mode
Ok, I build the prog, run the program and a=1;
I have rebuild or clean+build to the program runs as I want : a=0;
It only happen with template funtions. Changes made at any other place are take into account.
Thanks
Bookmarks