~holger-seelig/titania/0.7.5

« back to all changes in this revision

Viewing changes to libtitania-x3d/Titania/X3D/PeaseBlossom/Primitives/array.h

  • Committer: Holger Seelig
  • Date: 2014-10-24 07:22:24 UTC
  • Revision ID: holger.seelig@yahoo.de-20141024072224-lur2kz2f6tm7li2u
Fixed fatal crash when importing nodes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
493
493
 
494
494
        const auto iter = value .begin () + pos;
495
495
 
496
 
        for (auto & element : std::make_pair (iter, iter + count))
 
496
        for (auto & element : basic::make_range (iter, count))
497
497
        {
498
498
                element = new Type (e);
499
499
 
515
515
 
516
516
        const auto iter = value .begin () + pos;
517
517
 
518
 
        for (auto & element : std::make_pair (iter, iter + count))
 
518
        for (auto & element : basic::make_range (iter, count))
519
519
        {
520
520
                element = new Type (*first);
521
521