Skip to content

Commit

Permalink
TypeConvert.h: Comment unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlovegrove committed Jul 1, 2014
1 parent 90b6883 commit eb93006
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/pangolin/type_convert.h
Expand Up @@ -44,26 +44,26 @@ struct BadInputException : std::exception {
// Dummy methods to serialise functions / functors / lambdas etc
#ifdef CALLEE_HAS_VARIADIC_TEMPLATES
template<typename Ret, typename... Args>
inline std::istream& operator>>(std::istream& is, boostd::function<Ret(Args...)>& f) {
inline std::istream& operator>>(std::istream& /*is*/, boostd::function<Ret(Args...)>& /*f*/) {
throw BadInputException();
}
template<typename Ret, typename... Args>
inline std::ostream& operator<<(std::ostream& os, const boostd::function<Ret(Args...)>& f) {
inline std::ostream& operator<<(std::ostream& /*os*/, const boostd::function<Ret(Args...)>& /*f*/) {
throw BadInputException();
}
#else
template<typename Ret, typename Arg>
inline std::istream& operator>>(std::istream& is, boostd::function<Ret(Arg)>& f) {
inline std::istream& operator>>(std::istream& /*is*/, boostd::function<Ret(Arg)>& /*f*/) {
throw BadInputException();
}
template<typename Ret, typename Arg>
inline std::ostream& operator<<(std::ostream& os, const boostd::function<Ret(Arg)>& f) {
inline std::ostream& operator<<(std::ostream& /*os*/, const boostd::function<Ret(Arg)>& /*f*/) {
throw BadInputException();
}
inline std::istream& operator>>(std::istream& is, boostd::function<void(void)>& f) {
inline std::istream& operator>>(std::istream& /*is*/, boostd::function<void(void)>& /*f*/) {
throw BadInputException();
}
inline std::ostream& operator<<(std::ostream& os, const boostd::function<void(void)>& f) {
inline std::ostream& operator<<(std::ostream& /*os*/, const boostd::function<void(void)>& /*f*/) {
throw BadInputException();
}
#endif
Expand Down

0 comments on commit eb93006

Please sign in to comment.