// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef BSTRING_H
#define BSTRING_H
class String {
- struct srep {
- char *s; // pointer on the data
- int n; // reference counter
- srep()
- { n = 1; }
- };
- srep *p;
- int len;
-
+ std::string my_string;
+
public:
String();
String(const char *);
friend std::string operator+(const std::string &, const String &);
- operator const char *() const;
+ const char* c_str () const;
operator std::string () const;
friend std::ostream & operator<<(std::ostream &, const String &);