summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-11-03 00:43:04 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-11-03 00:43:04 +0000
commitdc2cc171e36136a8d2d8abb36b5030b3ea020b19 (patch)
treea615f20fd12d860d29d87540267695d2851bee7d
parentImprove conversion helpers (diff)
downloadslicer-dc2cc171e36136a8d2d8abb36b5030b3ea020b19.tar.bz2
slicer-dc2cc171e36136a8d2d8abb36b5030b3ea020b19.tar.xz
slicer-dc2cc171e36136a8d2d8abb36b5030b3ea020b19.zip
Move boost::algorithm::to_lower call out of template code
-rw-r--r--slicer/slicer/hookMap.cpp10
-rw-r--r--slicer/slicer/hookMap.h6
2 files changed, 14 insertions, 2 deletions
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 <boost/algorithm/string/case_conv.hpp>
+
+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 <array>
-#include <boost/algorithm/string/case_conv.hpp>
+#include <visibility.h>
namespace Slicer {
+ void DLL_PUBLIC to_lower(std::string s);
+
template<typename T> class ModelPartForComplex;
template<typename T> 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));
}