"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "kdbg/testprogs/templates.cpp" between
kdbg-2.5.5.tar.gz and kdbg-2.5.6.tar.gz

About: KDbg is a graphical user interface to GDB, the GNU debugger (requires KDE, the K Desktop Environment).

templates.cpp  (kdbg-2.5.5):templates.cpp  (kdbg-2.5.6)
skipping to change at line 89 skipping to change at line 89
A::g(); A::g();
cout << s << endl; cout << s << endl;
} }
template<typename T> template<typename T>
void indirect(T f, const char* s) void indirect(T f, const char* s)
{ {
f(s); f(s);
} }
template<class... Args>
void varargs(const char* sep, Args&&... args)
{
long vals[] = { args... };
for (auto v: vals)
cout << v << sep;
cout << endl;
}
int main() int main()
{ {
S s1, s2; S s1, s2;
f("direct"); f("direct");
s1 << 1; s1 << 1;
s1 << s2; s1 << s2;
s1 < 1; s1 < 1;
s1 < s2; s1 < s2;
A::operator<<(1, s1); A::operator<<(1, s1);
skipping to change at line 116 skipping to change at line 125
operator<(op2, s2); operator<(op2, s2);
indirect(f, "indirect"); indirect(f, "indirect");
// pointer to member function // pointer to member function
void (S::*pm1)(int) = &S::operator>>; void (S::*pm1)(int) = &S::operator>>;
(s1.*pm1)(1); (s1.*pm1)(1);
void (templS<int>::*pm2)(int) = &templS<int>::operator>; void (templS<int>::*pm2)(int) = &templS<int>::operator>;
templS<int> tSi; templS<int> tSi;
(tSi.*pm2)(1); (tSi.*pm2)(1);
tSi.operator<(1); tSi.operator<(1);
varargs(" : ", 1, short(-2), 4U, '3');
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS