From e8a666b37f9ed4f64e6f1c25f07b38d326027b0c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 27 Apr 2020 20:21:47 +0100 Subject: Remvoe some duplication in class registration --- slicer/slicer/modelPartsTypes.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/slicer/slicer/modelPartsTypes.cpp b/slicer/slicer/modelPartsTypes.cpp index faad404..7d9ea54 100644 --- a/slicer/slicer/modelPartsTypes.cpp +++ b/slicer/slicer/modelPartsTypes.cpp @@ -5,11 +5,12 @@ namespace Slicer { using ClassRefMap = std::map>; + using ClassNamePair = std::pair; using ClassNameMap = boost::multi_index_container< - std::pair, + ClassNamePair, boost::multi_index::indexed_by< - boost::multi_index::ordered_unique, const std::string, &std::pair::first>, std::less<>>, - boost::multi_index::ordered_unique, const std::string, &std::pair::second>, std::less<>> + boost::multi_index::ordered_unique, std::less<>>, + boost::multi_index::ordered_unique, std::less<>> >>; static void createClassMaps() __attribute__((constructor(208))); -- cgit v1.2.3