Index: [thread] [date] [subject] [author]
  From: David Cyrus Adkisson <dca3@duke.edu>
  To  : 
  Date: Sun, 7 Feb 1999 11:28:33 -0500

FAT STL woes

	Could someone kindly explain to me why when I have the lines:

void WagToTrix::OpenFile(const string & filename)
{
    input.open(filename);
}

the compiler hates me, and says, and I quote:

wagtotrix.cc:19: no matching function for call to `ifstream::open (const 
basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &)'
/afs/acpub/project/cps/pkgs/gcc-2.8.1/include/g++/fstream.h:67: 
candidates are: ifstream::open(const char *, int, int)

I'm just wondering, why do you need a constant char pointer and two ints 
to open a file? This is a frustrating error because I can't do much else 
until I get this figured out. Any help would be appreciated.

	Cyrus Adkisson


Index: [thread] [date] [subject] [author]