mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-15 15:40:56 +01:00
fixed translate function, tests now pass
This commit is contained in:
parent
e894e03c89
commit
71bac03b49
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue