Skip to content
Browse files

Provide good default constructor for binary argument swap

(cherry picked from commit 87b203b)
  • Loading branch information...
1 parent f209097 commit 9dd5fd097f44da790b73a58517c6b0c6c63ab0db @antialize antialize committed with Mortal Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tpie/util.h
View
2 tpie/util.h
@@ -150,7 +150,7 @@ struct binary_argument_swap: public std::binary_function<typename T::second_argu
typename T::first_argument_type,
typename T::result_type> {
T i;
- binary_argument_swap(T & _): i(_) {}
+ binary_argument_swap(const T & _=T()): i(_) {}
inline bool operator()(const typename T::second_argument_type & x,
const typename T::first_argument_type & y) {
return i(y,x);

0 comments on commit 9dd5fd0

Please sign in to comment.
Something went wrong with that request. Please try again.