From 9072b0c98ba4f9412885a1a32002ee7214fd3dc0 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 30 Jan 2014 03:36:23 +0000 Subject: Attempting to fix OSX compatibility, it's not 100%, but it builds and most things seem to work. We've also tested against LLVM. --- src/stable/string.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/stable/string.cpp') diff --git a/src/stable/string.cpp b/src/stable/string.cpp index bf3aac0..1ceaec1 100644 --- a/src/stable/string.cpp +++ b/src/stable/string.cpp @@ -173,6 +173,17 @@ Bu::String::String( const Bu::String::const_iterator &s, append( s, e ); } +Bu::String::String( const Bu::String::iterator &s ) +{ + append( s ); +} + +Bu::String::String( const Bu::String::iterator &s, + const Bu::String::iterator &e ) +{ + append( s, e ); +} + Bu::String::~String() { } @@ -317,6 +328,11 @@ void Bu::String::append( const const_iterator &s, const const_iterator &e ) } } +void Bu::String::append( const iterator &s, const iterator &e ) +{ + append( const_iterator( s ), const_iterator( e ) ); +} + void Bu::String::prepend( const String & sData ) { prepend( sData.getStr(), sData.getSize() ); -- cgit v1.2.3