From 0a8a59b97355b4c9c42127d963bf6c657e0b7fd1 Mon Sep 17 00:00:00 2001 From: Bernhard Gatzhammer Date: Thu, 29 Jan 2015 13:01:55 +0100 Subject: [PATCH] Replaced C++11 initializer with before statements of older compatibility. Ticket EMBB-377 --- doc/examples/algorithms/sorting/sorting-fragmented.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/examples/algorithms/sorting/sorting-fragmented.cc b/doc/examples/algorithms/sorting/sorting-fragmented.cc index e37996e..25ca6c2 100644 --- a/doc/examples/algorithms/sorting/sorting-fragmented.cc +++ b/doc/examples/algorithms/sorting/sorting-fragmented.cc @@ -34,7 +34,11 @@ */ void RunSorting() { #include "algorithms/sorting/range_define-snippet.h" - range = {4, 2, 3, 5, 1}; + range.push_back(4); + range.push_back(2); + range.push_back(3); + range.push_back(5); + range.push_back(1); #include "algorithms/sorting/quick_sort-snippet.h" for (size_t i = 0; i < range.size(); i++) { -- libgit2 0.26.0