aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-30 06:24:15 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-30 06:24:15 +0000
commitcfcfbf452a96da757420ad87a22c9e25409c975e (patch)
tree81a041c227e65e22a4ce5bfd4286d4a009e3e8d4 /src
parent60bac0c9f558ab34c70f099db923204a84d51ffc (diff)
downloadlibbu++-cfcfbf452a96da757420ad87a22c9e25409c975e.tar.gz
libbu++-cfcfbf452a96da757420ad87a22c9e25409c975e.tar.bz2
libbu++-cfcfbf452a96da757420ad87a22c9e25409c975e.tar.xz
libbu++-cfcfbf452a96da757420ad87a22c9e25409c975e.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/fstring.h3
1 files changed, 2 insertions, 1 deletions
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
478 478
479 return pFirst->pData[nIndex]; 479 return pFirst->pData[nIndex];
480 } 480 }
481 481/*
482 operator const chr *() const 482 operator const chr *() const
483 { 483 {
484 if( !pFirst ) return NULL; 484 if( !pFirst ) return NULL;
485 flatten(); 485 flatten();
486 return pFirst->pData; 486 return pFirst->pData;
487 } 487 }
488 */
488 489
489 operator bool() const 490 operator bool() const
490 { 491 {