From cfcfbf452a96da757420ad87a22c9e25409c975e Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 30 Jun 2007 06:24:15 +0000 Subject: For now we have no const char * cast operator on FString, ISO C++ says that we can't have that and an indexing operator. More research with other compilers needs to be done if we want to try just having the cast operator. I would rather be able to index than auto-cast. --- src/fstring.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/fstring.h b/src/fstring.h index f06c362..1e1fc02 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -478,13 +478,14 @@ namespace Bu return pFirst->pData[nIndex]; } - +/* operator const chr *() const { if( !pFirst ) return NULL; flatten(); return pFirst->pData; } + */ operator bool() const { -- cgit v1.2.3