fixed translate function, tests now pass

This commit is contained in:
jez_higgins 2006-07-13 21:03:00 +00:00
parent e894e03c89
commit 71bac03b49

View file

@ -447,7 +447,7 @@ public:
if(p != string_adaptor::end(str))
*p = 0;
return new StringValue<string_type, string_adaptor>(str);
return new StringValue<string_type, string_adaptor>(string_adaptor::construct(string_adaptor::begin(str), p));
} // evaluate
}; // class TranslateFn