[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vxi] List archives??? [was Re: Error while compiling VXI2.0.1]

Harish wrote:
> /usr/include/g++-3/std/bastring.h:343: cannot convert `const char *' to
> `const VXIchar *' in return

Being pretty new to this list, I wonder if there are any list archives planned
or even better, in operation? The vxi-discuss Web page only says "to be
added ...". I would imagine a lot of questions could be prevented if you
were able to look at past messages (and search through them). If there's
really no archive yet, I might look into it, can't be too difficult...


P.S. The answer to Harish' question was posted yesterday:

in /usr/include/g++-3/std/bastring.h:343
  const charT* c_str () const
    { if (length () == 0) return ""; terminate (); return data (); }
  const charT* c_str () const
    { const charT* null_str = reinterpret_cast<const charT*>("");
       if (length () == 0) return null_str; terminate (); return data (); }

Actually, I wonder if it wouldn't be better to remove the temporary variable.
But then, it probably doesn't matter (*if* the compiler does some sort of

  const charT* c_str () const
    { if (length () == 0) return reinterpret_cast<const charT*>("");
      terminate (); return data ();

Lutz Birkhahn                                       System Software Engineer
Adomo Inc.  --  19400 Stevens Creek Blvd. Suite 202  --  Cupertino, CA 95014
phone: +1 (408) 996-7086 ext. 118                 private: +1 (408) 564-0162

This page is maintained by Alan W Black (awb@cs.cmu.edu)
speechinfo.org is hosted on a machine donated by VA Linux Systems
VA Linux Systems