[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master cd5f84c 2/2: Do not specify default map compa
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master cd5f84c 2/2: Do not specify default map comparator explicitly |
Date: |
Thu, 2 Mar 2017 12:32:54 -0500 (EST) |
branch: master
commit cd5f84c6b51d9286f2ce1b300789cddff3908024
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Do not specify default map comparator explicitly
The third parameter of std::map<> defaults to 'Compare = less<Key>'.
That default had been specified explicitly in some very old code
because one pre-standard compiler had required it.
---
input_sequence_aux.hpp | 5 +----
ledger_base.hpp | 6 +++---
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/input_sequence_aux.hpp b/input_sequence_aux.hpp
index 0bc09f7..74015db 100644
--- a/input_sequence_aux.hpp
+++ b/input_sequence_aux.hpp
@@ -42,10 +42,7 @@
namespace detail
{
- typedef
- std::map<std::string, std::string, std::less<std::string>>
- stringmap
- ;
+ typedef std::map<std::string,std::string> stringmap;
std::vector<std::string> LMI_SO extract_keys_from_string_map
(stringmap const& keyword_dictionary
diff --git a/ledger_base.hpp b/ledger_base.hpp
index e0e2100..9835a79 100644
--- a/ledger_base.hpp
+++ b/ledger_base.hpp
@@ -166,9 +166,9 @@ class CRC;
///
/// We choose 3.a., which impels us to choose 2.a.
-typedef std::map<std::string, std::vector<double>*, std::less<std::string>>
double_vector_map;
-typedef std::map<std::string, std::string*, std::less<std::string>> string_map;
-typedef std::map<std::string, double*, std::less<std::string>> scalar_map;
+typedef std::map<std::string,std::vector<double>*> double_vector_map;
+typedef std::map<std::string,std::string*> string_map;
+typedef std::map<std::string,double*> scalar_map;
class LMI_SO LedgerBase
{