From a44d2d3e4daf6f4ddd0659017a7d11289dfcde4a Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Wed, 22 Jun 2016 13:48:26 -0400 Subject: [PATCH] user map for environment variables so they print in alphabetical order. --- environment.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/environment.h b/environment.h index 7e6c01d..23df1e3 100644 --- a/environment.h +++ b/environment.h @@ -1,10 +1,11 @@ #ifndef __environment_h__ #define __environment_h__ +#include +#include #include #include #include -#include #include @@ -47,7 +48,7 @@ private: class Environment { public: - typedef std::unordered_map mapped_type; + typedef std::map mapped_type; typedef mapped_type::iterator iterator; typedef mapped_type::const_iterator const_iterator; @@ -149,7 +150,7 @@ private: void set_common(const std::string &, const std::string &, bool); void rebuild_aliases(); - std::unordered_map _table; + mapped_type _table; alias_table_type _alias_table; };