From 45f35bd3b81a7706c6e3a7f9c7a1873ee2b99981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Fri, 10 Oct 2003 16:50:48 +0000 Subject: [PATCH] added a new test case to actually test enable_if_lazy :) [SVN r1661] --- test/enable_if_lazy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/enable_if_lazy.cpp b/test/enable_if_lazy.cpp index b746ea7..fef927e 100644 --- a/test/enable_if_lazy.cpp +++ b/test/enable_if_lazy.cpp @@ -62,12 +62,14 @@ typename lazy_enable_if_c< mult_traits >::type mult(const T& x, const U& y) {return x * y;} +double mult(int i, double d) { return (double)i * d; } int test_main(int, char*[]) { BOOST_TEST(mult(1, 2) == 2); BOOST_TEST(mult(1.0, 3.0) == 3.0); + BOOST_TEST(mult(1, 3.0) == 3.0); return 0; }