diff options
Diffstat (limited to 'example/simple_example/example.cpp')
| -rw-r--r-- | example/simple_example/example.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/simple_example/example.cpp b/example/simple_example/example.cpp index 0487e80..acd7182 100644 --- a/example/simple_example/example.cpp +++ b/example/simple_example/example.cpp @@ -18,8 +18,8 @@ using namespace boost; int main() { auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); - - std::unique_ptr<tproc::crope> new_elem = std::make_unique<tproc::crope>(", and Jumps again."); + auto new_elem = std::make_unique<tproc::crope>(", and Jumps again."); + rope.concat(new_elem.get()); std::cout << *++rope << std::endl; |
