From 110c20e507e1fe0edfba61f678c1974a0a29e9b3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 3 Jul 2007 05:20:22 +0000 Subject: Added an assignment operator to get data from comparable std::basic_string classes. --- src/fstring.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/fstring.h b/src/fstring.h index 1e1fc02..65410af 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -2,6 +2,7 @@ #define BU_F_STRING_H #include +#include #include #include "bu/archival.h" #include "bu/archive.h" @@ -347,6 +348,14 @@ namespace Bu return (*this); } + MyType &operator =( const std::basic_string &rData ) + { + clear(); + append( rData.c_str(), rData.size() ); + + return (*this); + } + /** * Reset your FString to this character array. *@param pData (const chr *) The character array to set your FString to. -- cgit v1.2.3