From dc2cc171e36136a8d2d8abb36b5030b3ea020b19 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 3 Nov 2020 00:43:04 +0000 Subject: Move boost::algorithm::to_lower call out of template code --- slicer/slicer/hookMap.cpp | 10 ++++++++++ slicer/slicer/hookMap.h | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 slicer/slicer/hookMap.cpp diff --git a/slicer/slicer/hookMap.cpp b/slicer/slicer/hookMap.cpp new file mode 100644 index 0000000..6e17a38 --- /dev/null +++ b/slicer/slicer/hookMap.cpp @@ -0,0 +1,10 @@ +#include "hookMap.h" +#include + +namespace Slicer { + void + to_lower(std::string s) + { + boost::algorithm::to_lower(s); + } +} diff --git a/slicer/slicer/hookMap.h b/slicer/slicer/hookMap.h index a362a18..58fe014 100644 --- a/slicer/slicer/hookMap.h +++ b/slicer/slicer/hookMap.h @@ -3,9 +3,11 @@ #include "modelParts.h" #include -#include +#include namespace Slicer { + void DLL_PUBLIC to_lower(std::string s); + template class ModelPartForComplex; template class Hooks { public: @@ -113,7 +115,7 @@ namespace Slicer { equal_range_nocase(const K & k) const { std::string i {k}; - boost::algorithm::to_lower(i); + to_lower(i); return equal_range_lower(std::move(i)); } -- cgit v1.2.3