update converter.hpp to work with gcc, add uninstall to makefile

This commit is contained in:
ado 2020-12-10 20:41:49 +01:00
parent 1f502d2afa
commit 6b9639afc8
2 changed files with 13 additions and 10 deletions

View File

@ -307,15 +307,6 @@ class converter {
}
}
template <>
void extract_one<std::string>(std::string& dst, const string_range msg,
size_t) {
SS_RETURN_ON_INVALID;
extract(msg.first, msg.second, dst);
}
#undef SS_RETURN_ON_INVALID
template <size_t ArgN, size_t TupN, typename... Ts>
void extract_multiple(no_void_validator_tup_t<Ts...>& tup,
const split_input& elems) {
@ -358,4 +349,13 @@ class converter {
std::string error_;
};
template <>
void converter::extract_one<std::string>(std::string& dst,
const string_range msg, size_t) {
SS_RETURN_ON_INVALID;
extract(msg.first, msg.second, dst);
}
#undef SS_RETURN_ON_INVALID
} /* ss */

View File

@ -1,5 +1,8 @@
install:
cp -r ./include/ss/ /usr/include/
cp -r ./include/ss/ /usr/local/include/
uninstall:
rm -rf /usr/local/include/ss/*.hpp
test:
cd test && $(MAKE) -j4 && $(MAKE) test && $(MAKE) clean