diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-03 00:43:04 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-11-03 00:43:04 +0000 |
commit | dc2cc171e36136a8d2d8abb36b5030b3ea020b19 (patch) | |
tree | a615f20fd12d860d29d87540267695d2851bee7d | |
parent | Improve conversion helpers (diff) | |
download | slicer-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.cpp | 10 | ||||
-rw-r--r-- | slicer/slicer/hookMap.h | 6 |
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)); } |