Thread View: comp.std.c++
2 messages
2 total messages
Started by David Byrden
Fri, 23 Feb 1996 03:39
Tiny but embarassing typo in standard
Author: David Byrden
Date: Fri, 23 Feb 1996 03:39
Date: Fri, 23 Feb 1996 03:39
33 lines
1546 bytes
1546 bytes
14.3.2.1
template<class T> class Y {
public:
void f1() { g1(1); }
void f2() { g2(2); }
void f3() { g3(3); }
void f4() { g4(4); }
};
void k(const Y<int>& h)
{
void g1(int);
h.f1(); // error: g1(int) called by g1(1) not found
// local g1() not considered
}
Of course, f1() cannot be called in any case because someone forgot to
declare it const.
David
[ To submit articles: Try just posting with your newsreader.
If that fails, use mailto:std-c++@ncar.ucar.edu
FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]
Re: Tiny but embarassing typo in standard
Author: Andrew Koenig
Date: Sun, 25 Feb 1996 16:45
Date: Sun, 25 Feb 1996 16:45
16 lines
1032 bytes
1032 bytes
In article <4girfp$soo@news.bridge.net> David Byrden <100101.2547@compuserve.com> writes: > Of course, f1() cannot be called in any case because someone forgot to > declare it const. Fixed, thank you. -- --Andrew Koenig ark@research.att.com [ To submit articles: Try just posting with your newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html Comments? mailto:std-c++-request@ncar.ucar.edu ]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads