summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));
}