Skip to content

Commit 539d712

Browse files
author
Dane Springmeyer
committedDec 16, 2016
fix conversion warnings
1 parent 253047f commit 539d712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/t/binary_visitor_impl.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ struct swap_visitor
160160
{
161161
using T = typename std::common_type<A, B>::type;
162162
T tmp = a;
163-
a = b;
164-
b = tmp;
163+
a = static_cast<A>(b);
164+
b = static_cast<B>(tmp);
165165
}
166166
};
167167

0 commit comments

Comments
 (0)