~paul-lucas/zorba/bug-932374

« back to all changes in this revision

Viewing changes to src/diagnostics/dict.cpp

  • Committer: Paul J. Lucas
  • Date: 2012-09-21 20:26:47 UTC
  • mfrom: (10819.2.235 zorba)
  • Revision ID: paul@lucasmail.org-20120921202647-fy9n4jduhrnljrnb
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include <cstring>
19
19
#include <functional>
20
20
#include <utility>                      /* for pair */
 
21
#include <cassert>
21
22
 
22
23
#include "zorbautils/locale.h"
23
24
 
76
77
  range_type const result =
77
78
    ::equal_range( begin, end, entry_to_find, less_entry() );
78
79
 
 
80
  assert(result.first != result.second);
 
81
 
79
82
  return result.first == result.second ? key : result.first->value;
80
83
}
81
84