summaryrefslogtreecommitdiff
path: root/compiler/cpp/test
diff options
context:
space:
mode:
authorRoman Soroka <romanoid@uber.com>2018-03-08 15:45:22 -0800
committerJames E. King III <jking@apache.org>2018-03-14 13:07:10 -0400
commite58f75daa8a4e5efec4ff434d9427a05973e86fe (patch)
treeae739135fa38a5b634b30ac0097fb09eb9bb5a40 /compiler/cpp/test
parentda9a9bac92550f676e170e600d4be24769e14835 (diff)
downloadthrift-e58f75daa8a4e5efec4ff434d9427a05973e86fe.tar.gz
THRIFT-4513: Fix thrift compiler to generate constants in stable order.
This closes #1505
Diffstat (limited to 'compiler/cpp/test')
-rw-r--r--compiler/cpp/test/plugin/conversion_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cpp/test/plugin/conversion_test.cc b/compiler/cpp/test/plugin/conversion_test.cc
index e73aa168d..3c8d812cf 100644
--- a/compiler/cpp/test/plugin/conversion_test.cc
+++ b/compiler/cpp/test/plugin/conversion_test.cc
@@ -277,12 +277,12 @@ void test_const_value(t_const_value* sut) {
BOOST_CHECK_EQUAL(sut->get_map().size(), sut2->get_map().size());
{
std::map<t_const_value::t_const_value_type, t_const_value::t_const_value_type> sut_values;
- for (std::map<t_const_value*, t_const_value*>::const_iterator it = sut->get_map().begin();
+ for (std::map<t_const_value*, t_const_value*, t_const_value::value_compare>::const_iterator it = sut->get_map().begin();
it != sut->get_map().end(); it++) {
sut_values[it->first->get_type()] = it->second->get_type();
}
std::map<t_const_value::t_const_value_type, t_const_value::t_const_value_type> sut2_values;
- for (std::map<t_const_value*, t_const_value*>::const_iterator it = sut2->get_map().begin();
+ for (std::map<t_const_value*, t_const_value*, t_const_value::value_compare>::const_iterator it = sut2->get_map().begin();
it != sut2->get_map().end(); it++) {
sut2_values[it->first->get_type()] = it->second->get_type();
}