mirror of
https://github.com/red0124/ssp.git
synced 2026-08-01 09:57:46 +02:00
update converter.hpp to work with gcc, add uninstall to makefile
This commit is contained in:
@@ -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>
|
template <size_t ArgN, size_t TupN, typename... Ts>
|
||||||
void extract_multiple(no_void_validator_tup_t<Ts...>& tup,
|
void extract_multiple(no_void_validator_tup_t<Ts...>& tup,
|
||||||
const split_input& elems) {
|
const split_input& elems) {
|
||||||
@@ -358,4 +349,13 @@ class converter {
|
|||||||
std::string error_;
|
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 */
|
} /* ss */
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
install:
|
install:
|
||||||
cp -r ./include/ss/ /usr/include/
|
cp -r ./include/ss/ /usr/local/include/
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -rf /usr/local/include/ss/*.hpp
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cd test && $(MAKE) -j4 && $(MAKE) test && $(MAKE) clean
|
cd test && $(MAKE) -j4 && $(MAKE) test && $(MAKE) clean
|
||||||
|
|||||||
Reference in New Issue
Block a user