On Jul 18, 2005, at 11:07, Jeff Hill wrote:
The c_str function does not allow an
implementation that is stored in non-contiguous fixed sized blocks (or
else
c_str calls malloc, or else c_str isn't thread safe, ...).
I agree that's less than ideal,
but I still don't see a way around contiguous char * strings,
because that's what most 'legacy' libraries want.
You can add that as a layer around the next EPICS String class
and copy char by char from the non-contig. String into a char *,
but std::string and MFC::CString instead bite the bullet
and provide a c_str() type of method.
-Kay
- Replies:
- RE: [Fwd: RE: Standard String] Jeff Hill
- Re: [Fwd: RE: Standard String] Andrew Johnson
- References:
- RE: [Fwd: RE: Standard String] Jeff Hill
- Navigate by Date:
- Prev:
RE: [Fwd: RE: Standard String] Jeff Hill
- Next:
RE: [Fwd: RE: Standard String] Jeff Hill
- Index:
2002
2003
2004
<2005>
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: [Fwd: RE: Standard String] Jeff Hill
- Next:
RE: [Fwd: RE: Standard String] Jeff Hill
- Index:
2002
2003
2004
<2005>
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|