Topic: operator const char * for stl string


Author: jsm1@zeus.anet-dfw.com (Scott McCaskill)
Date: 1996/06/28
Raw View
I know this may be a FAQ (although the answer does not appear to be in the
faq), but why is there no operator const char * in the stl string class?
I looked at the most recent, publicly-available draft and it definitely
isn't there.  Given the existence of const char * string::c_str(), this
makes no sense to me.

--scott
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]