[glom/glom-1-32] Add missing std::hash<> template types to fix the build.



commit afdf1b5a36d2b3b5b0bc985bad505f1f2b5caf27
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Nov 23 10:57:06 2016 +0100

    Add missing std::hash<> template types to fix the build.

 glom/libglom/document/document.h                   |    4 ++--
 .../relationships_overview/canvas_group_dbtable.h  |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glom/libglom/document/document.h b/glom/libglom/document/document.h
index 78e803a..b5f8a5c 100644
--- a/glom/libglom/document/document.h
+++ b/glom/libglom/document/document.h
@@ -602,10 +602,10 @@ private:
     std::vector< LayoutInfo > m_layouts;
 
     // map of report names to reports
-    std::unordered_map<Glib::ustring, std::shared_ptr<Report>> m_reports;
+    std::unordered_map<Glib::ustring, std::shared_ptr<Report>, std::hash<std::string>> m_reports;
 
     // map of print layout names to print layouts
-    std::unordered_map< Glib::ustring, std::shared_ptr<PrintLayout>> m_print_layouts;
+    std::unordered_map<Glib::ustring, std::shared_ptr<PrintLayout>, std::hash<std::string>> m_print_layouts;
 
     //Example data, used when creating a database from an example.
     type_example_rows m_example_rows;
diff --git a/glom/mode_design/relationships_overview/canvas_group_dbtable.h 
b/glom/mode_design/relationships_overview/canvas_group_dbtable.h
index 76373a5..cd63e9d 100644
--- a/glom/mode_design/relationships_overview/canvas_group_dbtable.h
+++ b/glom/mode_design/relationships_overview/canvas_group_dbtable.h
@@ -48,7 +48,7 @@ private:
    double m_table_height;
    static double m_table_width;
 
-   std::unordered_map <Glib::ustring, double> m_map_fields_y;
+   std::unordered_map<Glib::ustring, double, std::hash<std::string>> m_map_fields_y;
 };
 
 } //namespace Glom


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]