Permalink
Browse files

Provide good default constructor for binary argument swap

  • Loading branch information...
1 parent 48d1448 commit 87b203b7d91c933deecfea2d39847ab29b4e6a88 @antialize antialize committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tpie/util.h
View
@@ -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 87b203b

Please sign in to comment.