Topic: STL functional objects
Author: Christopher Eltschka <celtschk@physik.tu-muenchen.de>
Date: 1998/05/22 Raw View
Christopher Cradock wrote:
>
> Can anyone explain why the following doesn't work?
>
> class Regex;
> class word {
> public:
> ....
> bool match(Regex &);
> } Empty;
> vector<word> V;
Three possibilities:
- You forgot to add #include <vector>
- You have a problem in the ... part of the class (maybe no accessible
copy constructor)
- You have a broken compiler or library
Better guesses would need at least the error message from your
compiler.
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Christopher Cradock <cradockc@oup.co.uk>
Date: 1998/05/21 Raw View
Can anyone explain why the following doesn't work?
class Regex;
class word {
public:
....
bool match(Regex &);
} Empty;
vector<word> V;
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]